1
gmillar
Auto Show all menus
  • 2008/9/1 6:56

  • gmillar

  • Just popping in

  • Posts: 3

  • Since: 2008/9/1 6


Hi All,

Just working on my first XOOPS site.

I have got alot of working but just need to have it so all content menus are expanded by default.

At the moment I click on mainMenu x -> expands out to show Menu x's children.

What I want is to have mainmenu 1, main menu 2, main menu n all expanded from the start with all the children expanded out automatically.

Does any one know how this can be acheived?

2
ghia
Re: Auto Show all menus
  • 2008/9/1 8:40

  • ghia

  • Community Support Member

  • Posts: 4953

  • Since: 2008/7/3 1


I think you have to install a module like multimenu to achieve that.

3
noo-b
Re: Auto Show all menus
  • 2008/9/1 9:20

  • noo-b

  • Just can't stay away

  • Posts: 456

  • Since: 2007/10/23


I Love Xoops

4
trabis
Re: Auto Show all menus
  • 2008/9/1 9:51

  • trabis

  • Core Developer

  • Posts: 2269

  • Since: 2006/9/1 1


Go to modules/system/blocks/system_blocks.php line 125

Search:
if ((count($sublinks) > 0) && (!empty($xoopsModule)) && ($i == $xoopsModule->getVar('mid'))) {


Replace with:
if (count($sublinks) > 0) {

5
gmillar
Re: Auto Show all menus
  • 2008/9/2 2:40

  • gmillar

  • Just popping in

  • Posts: 3

  • Since: 2008/9/1 6


Thanks Trabis - your code worked perfectly for the main menu.

Did not solve my issue - my fault, I should have been more specific with my question.

I was using the XOOPS DH info Menu Module. I solved it by going into the Blocks admin. Then clicked 'edit' on the DHinfo Menu block. I then changed the sublinks from dynamic to permanent.

Thank you for your help everyone.

Gerry

Login

Who's Online

195 user(s) are online (133 user(s) are browsing Support Forums)


Members: 1


Guests: 194


Farell,

more...

Donat-O-Meter

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

Latest GitHub Commits