1
cukier
How to make Submenu in a new block
  • 2007/12/27 13:10

  • cukier

  • Just popping in

  • Posts: 1

  • Since: 2007/12/27


hi,

I want to have my Mainmenu and Submenu (sublinks) separated.

I removed lines:
<{foreach item=sublink from=$module.sublinks}>
<{$sublink.name}>
<{/foreach}>

from system_block_mainmenu.html to get pure one-level Main-menu. It works well. But I have a problem to make a new system block with sublinks.

Please, help.

cukier

2
mboyden
Re: How to make Submenu in a new block
  • 2007/12/27 16:05

  • mboyden

  • Moderator

  • Posts: 484

  • Since: 2005/3/9 1


You might want to look at the FAQ on cloning blocks or the FAQ on creating custom blocks (probably less helpful). You also might check out the MultiMenu module as that may be MUCH easier for what you are trying to do. Finally, if this doesn't give you an answer, make sure you give as much specifics about your question as possible.
Pessimists see difficulty in opportunity; Optimists see opportunity in difficulty. --W Churchill

XOOPS: Latest | Debug | Hosting and Web Development

3
trabis
Re: How to make Submenu in a new block
  • 2007/12/28 14:07

  • trabis

  • Core Developer

  • Posts: 2269

  • Since: 2006/9/1 1


I supose you have to clone(this is the hard part) that block and then remove from the template the menu and leave only the submenu.

Maybe there is another way, create a custom block that picks up the smarty vars of the other block. I´m not shure here.

Anyway, later I´ll give it a try!

4
trabis
Re: How to make Submenu in a new block
  • 2007/12/29 0:08

  • trabis

  • Core Developer

  • Posts: 2269

  • Since: 2006/9/1 1


I´ve just done a module with two blocks:
main menu block (does not show sub menu)
sub menu block (show related submenus if any)

Download 'userblocks' here:
http://www.xuups.com/userblocks.rar

Login

Who's Online

245 user(s) are online (185 user(s) are browsing Support Forums)


Members: 0


Guests: 245


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