Hi,
I have the following menu:
and I have the following problems with it:
I'm not sure why the "All" isn't working, I'm probably overlooking something, but the code is the same as my main navigation menu which is working just fine.
I don't know if it's possible to add the current class to the categories, but if so I'd really appreciate the help.
Thanks!
I have the following menu:
- Code: Select all
<ul class="project-tags">
<cms:set my_portfolio_template_link="<cms:link 'portfolio.php' />" />
<li><h3>Categories:</h3></li>
<li><a href="<cms:link 'portfolio.php' />" <cms:if k_template_name=='portfolio.php'>class="current"</cms:if> >All</a></li>
<cms:pages masterpage='categories.php'>
<li><a href="<cms:add_querystring my_portfolio_template_link "categories=<cms:show k_page_name />" />" ><cms:show k_page_title /></a></li>
</cms:pages>
</ul>
and I have the following problems with it:
- The "All" menu item is not displaying as active when on portfolio.php
- I'm not sure how to apply the current class to the categories
I'm not sure why the "All" isn't working, I'm probably overlooking something, but the code is the same as my main navigation menu which is working just fine.
I don't know if it's possible to add the current class to the categories, but if so I'd really appreciate the help.
Thanks!