1
Francesca
Subcategories in Sitemap
  • 2006/10/15 10:34

  • Francesca

  • Just popping in

  • Posts: 9

  • Since: 2006/5/14


Hello, I installed Sitemap on XOOPS 2.0.15 and I use this HTML code to display the map with nested lists:
<{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}>

But, if there are no subcategories I end up having empty sub-lists.
What can I do about that?
I'd need to show the nested
    only where there actually are subcategories..

    Thank you in advance.

Login

Who's Online

154 user(s) are online (125 user(s) are browsing Support Forums)


Members: 0


Guests: 154


more...

Donat-O-Meter

Stats
Goal: AU$15.00
Due Date: Jul 31
Gross Amount: AU$0.00
Net Balance: AU$0.00
Left to go: AU$15.00
Make donations with PayPal!

Latest GitHub Commits