Hi I have one site with identical code as this and it works. On a new site it does not add the class ".active" on the nav links.
code as below:
<@ newPagelist {
type: 'children',
context: '/services',
excludeHidden: true } @>
<@ foreach in pagelist @>
<a href="@{ url }" class="button nav"<@
if @{ :currentPath }@> class="active"<@ end @>
> @{ title } </a>
<@ end @>
<@ newPagelist {
type: 'children',
context: '/',
excludeHidden: true } @>
<@ foreach in pagelist @>
<a href="@{ url }" class="button nav"<@
if @{ :currentPath }@> class="active"<@ end @>
> @{ title } </a>
<@ end @>
anyone know why this would be?