1
russtik
Want to modify the Main Menu position...
  • 2004/8/26 15:22

  • russtik

  • Just popping in

  • Posts: 70

  • Since: 2004/8/13


Hi,

I'm trying to get the main menu block to appear in the header as a set of tabs instead of in the left column. I've tried copying the markup from the block template into theme.html:

<div id="mainmenu">
<a class="menuTop" href="<{$xoops_url}>/"><{$block.lang_home}></a>
<!-- start module menu loop -->
<{foreach item=module from=$block.modules}>
<a class="menuMain" href="<{$xoops_url}>/modules/<{$module.directory}>/"><{$module.name}></a>
<{foreach item=sublink from=$module.sublinks}>
<a class="menuSub" href="<{$sublink.url}>"><{$sublink.name}></a>
<{/foreach}>
<{/foreach}>
<!-- end module menu loop -->
</div>

This didn't work, a quick look at the source showed nothing between the comments when run through the browser.

So basically I haven't got any more ideas & I was hoping some of you lot might?

Pleeeeease

2
hsalazar
Re: Want to modify the Main Menu position...
  • 2004/8/26 15:50

  • hsalazar

  • Just popping in

  • Posts: 78

  • Since: 2003/2/6 1


russtik:

You can't just copy the code from a block and expect it to work outside of a block. Simply stated, that is because XOOPS doesn't know the meaning of the Smarty tags placed in the HTML file. The solution would be to add the menu PHP code to the footer (in an unobstrusive place) and to make the necessary Smarty variable assignments. Of course, it gets a little difficult to keep the dynamic attributes of the main menu, but with persistence, I'm sure you can do it.

Cheers.

Login

Who's Online

246 user(s) are online (168 user(s) are browsing Support Forums)


Members: 0


Guests: 246


more...

Donat-O-Meter

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

Latest GitHub Commits