I’m trying to create a menu based on my categories.
I would imagine creating a menu based upon categories is a common task. So I must be going about this the wrong way.
The issue I’m having is I cannot access the <li> to place an id in the selected item. If I use the style=“linear” my sub-categories are not nested.
Here is my code which is located in an embed. The if statement I’m using works, it is just located in the <a> rather than the <li>
{exp:weblog:categories weblog="kb" show_empty="no" category="18"}{!-- cat 18 is kb --}
<a href="#id=selected"> _{category_name}_</a>
{/exp:weblog:categories}Is anybody aware of any plugins or tricks to solve this?