View Single Post
  #5  
Old June 17th, 2013, 01:29 PM
nokii nokii is offline
 
Join Date: Jun 2013
Posts: 26
Default

Yes I do get the dropdown and its child categories but when I navigate to a category without childs I get an empty dropdown due to that the "div" is defined before the category.list

I also tried this but the dropdown won't show up at all in this case:

[category.if active='child']
<div class="btn-group" style="margin-left: 13px;margin-top: 9px;">
<a class="btn dropdown-toggle" data-toggle="dropdown" href="#">Kategori<span class="caret"></span></a>
[category.list before='<ul class="dropdown-menu">' after='</ul>']
<li style="list-style-type: none;margin:0px;"> <a href="[category.link]" title="[category.name]">[category.name]</a> </li>
[/category.list]
[/category.if]

== just added the category.if statement.

Any ideas?