Hi there,
I am printing out a category list that has two levels: parents and children. The list is rendered as a UL, which is fine, but I want to be able to assign a CSS class to the parents only. Is there any way to know when a particular item is a parent so I can assign a class? This is what my code looks like now:
{exp:weblog:categories style="nested" parent_only="no" class="head"}
<a href="#">{category_name}</a>
{/exp:weblog:categories}I would like to assign the class “head” to just the parents. It seems EE knows, but I can’t find a handle to tell me…
Thanks,
Aaron.