1
Francesca
How to show subcats in SiteMap
  • 2006/12/26 13:24

  • Francesca

  • Just popping in

  • Posts: 9

  • Since: 2006/5/14


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><class="menuMain" href="<{$xoops_url}>/modules/<{$module.directory}>/"><{$module.name}>a>h2>
       <
ul>
    <{foreach 
item=parent from=$module.parent}>
      <
li><class="menuSub" href="<{$xoops_url}>/modules/<{$module.directory}>/<{$parent.url}>"><{$parent.title}>a>
      <{if 
$show_subcategoris}>
      <
ul>
      <{foreach 
item=child from=$parent.child}>
        <
li><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.

    Login

    Who's Online

    419 user(s) are online (373 user(s) are browsing Support Forums)


    Members: 0


    Guests: 419


    more...

    Donat-O-Meter

    Stats
    Goal: $100.00
    Due Date: Nov 30
    Gross Amount: $0.00
    Net Balance: $0.00
    Left to go: $100.00
    Make donations with PayPal!

    Latest GitHub Commits