I’m using {exp:channel:categories} to display a navigation menu with four parent categories, each with a number of child categories. I can’t seem to figure out how to get different markup for each. There doesn’t seem to be a reference for conditionals that will work within this tag.
Current code:
{exp:channel:categories channel="default_site" style="nested"}
<a href="http://{path=site/overview}">{category_name}</a>
{/exp:channel:categories}What I’d like is for the parent categories to use the template ‘site/overview’ and the children to use a different template, e.g. ‘site/category’. What do I need to do to accomplish this?
I’d also like to be able to selectively append classes, e.g. to style the last item in the outputted list differently.