I have searched the docs but can’t find anything on the {exp:pageslist} tag, has that been depreciated since 2.3.x?
All I’m trying to do is set an “active” class in my navigation based upon segment_1. What am I doing wrong? Is there a better way?
pageslist_page_uri returns the uri with a leading slash so it never matches segment_1…
Here is my code:
<!-- START: Main Nav -->
<div class="menu">
<ul>
<li><a href="http://{site_url}%22class=%22active" title="Home" class="active">Home</a></li>
{exp:pageslist}
<li><a href="http://{path={pageslist_page_uri}}%22class=%22active" title='{pageslist_page_title}' class="active">{pageslist_page_title}</a></li>
{/exp:pageslist}
</ul>
</div>
<!-- END: Main Nav -->