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!

<table cellspacing="0">
  <
tr>
    <
td id="mainmenu">
      <
class="menuTop<{if $xoops_dirname=='system'}> actlink<{/if}>" href="<{$xoops_url}>/" title="<{$block.lang_home}>"><{$block.lang_home}>a>
      
      <{foreach 
item=module from=$block.modules}>
      <
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}>
          <
class="menuSub" href="<{$sublink.url}>" title="<{$sublink.name}>"><{$sublink.name}>a>
        <{/foreach}>
      <{/foreach}>
      
    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

Who's Online

358 user(s) are online (228 user(s) are browsing Support Forums)


Members: 0


Guests: 358


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