1
Hello, I installed SiteMap 1.26 on XOOPS 2.0.15 and I show subcategories with nested and ordered lists, just like that:
<{if $module.name}>
<h2><a class="menuMain" href="<{$xoops_url}>/modules/<{$module.directory}>/"><{$module.name}>a>h2>
<ul>
<{foreach item=parent from=$module.parent}>
<li><a class="menuSub" href="<{$xoops_url}>/modules/<{$module.directory}>/<{$parent.url}>"><{$parent.title}>a>
<{if $show_subcategoris}>
<ul>
<{foreach item=child from=$parent.child}>
<li><a class="menuSub" href="<{$xoops_url}>/modules/<{$module.directory}>/<{$child.url}>"><{$child.title}>a>li>
<{/foreach}>
ul>li>
<{/if}>
<{/foreach}>
ul>
But I need to make it so that - if there are no subcats - the empty list
doesn't appear.
Any help?
Thank you.