1
Almorca
Menu of modules
  • 2008/4/7 23:26

  • Almorca

  • Just popping in

  • Posts: 5

  • Since: 2007/8/9 2


I am doing a theme and I want to add, in the top, a list of modules installed similar to "main menu". How I can obtain a list of modules on Smarty to use in my theme?

2
avtx30
Re: Menu of modules
  • 2008/4/8 0:40

  • avtx30

  • Not too shy to talk

  • Posts: 181

  • Since: 2006/10/12


Please have a look at "Main Menu" template!

le="color: #000000"><?php <table cellspacing="0"> <tr> <td id="mainmenu"> <a class="menuTop<{if $xoops_dirname=='system'}> actlink<{/if}>" href="<{$xoops_url}>/" title="<{$block.lang_home}>"><{$block.lang_home}></a> <!-- start module menu loop --> <{foreach item=module from=$block.modules}> <a class="menuMain<{if $xoops_dirname==$module.directory}> actlink<{/if}>" href="<{$xoops_url}>/modules/<{$module.directory}>/" title="<{$module.name}>"><{$module.name}></a> <{foreach item=sublink from=$module.sublinks}> <a class="menuSub" href="<{$sublink.url}>" title="<{$sublink.name}>"><{$sublink.name}></a> <{/foreach}> <{/foreach}> <!-- end module menu loop --> </td> </tr> </table>

3
Almorca
Re: Menu of modules
  • 2008/4/8 21:52

  • Almorca

  • Just popping in

  • Posts: 5

  • Since: 2007/8/9 2


I have tried to do that but it don't work always. If you haven't defined $block.modules you can't use that.

Login

Donat-O-Meter

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

Latest GitHub Commits