1
huba01
multimenu problem
  • 2005/5/1 20:44

  • huba01

  • Just popping in

  • Posts: 19

  • Since: 2005/4/30


I'm having problem with mutimenu. I've created multimenu, but after I click on main link all the submenus of all mainlinks show up.
I want that only the selected main link show the sublink?
where is the problem?

many thanks

2
solo71
Re: multimenu problem
  • 2005/5/2 8:09

  • solo71

  • Module Developer

  • Posts: 941

  • Since: 2003/1/29


Which multiMenu version do you use?


3
quazart
Re: multimenu problem
  • 2005/5/19 17:02

  • quazart

  • Just popping in

  • Posts: 5

  • Since: 2004/10/14


Hi huba
I have the same problem. All sub links appear when I click on a main link. My XOOPS is 2.0.10 and Multimenu 1.72. Did you find the way to work it out???
Thanks a lot.

4
bluenova
Re: multimenu problem

From what I remember, the sublinks appear depending on the directory of the currently viewed page. So If you are viewing somthing in NewBB all sublinks linking to pages in NewBB would show up.

5
quazart
Re: multimenu problem
  • 2005/5/21 3:25

  • quazart

  • Just popping in

  • Posts: 5

  • Since: 2004/10/14




Oh, thanks bluenova, now everything becomes clear for me. But, I expected something different. Is there any way to make it work not depending of the directory but of the position of sublinks?????
My website has a lot of sub links pointing to articles in tinycontent inside different main links.

Thanks again

6
solo71
Re: multimenu problem
  • 2005/5/24 8:41

  • solo71

  • Module Developer

  • Posts: 941

  • Since: 2003/1/29


Sorry for the late reply.

multiMeny dynamic links display in 2 different way :

1) they are linked to the above main link (or category).

2) they display on page having the same directory root (or module if you prefer).

Regarding your need, you will have to 'desactivate' the option 2. That means, hacking the module which is quite easy.

1) Edit 'multiMenu/blocks/block.php' file.

2) Quote the following lines :

// Test 1 : link is sub of an active module with same directory
if ( !empty($xoopsModule) && eregi("/".$xoopsModule->getVar('dirname')."/"$link) || $myrow['submenu'] == 1) {
  
$imenu['showsub'] = 1;
  }


That's it. Please test and let me know.


Login

Who's Online

439 user(s) are online (72 user(s) are browsing Support Forums)


Members: 0


Guests: 439


more...

Donat-O-Meter

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

Latest GitHub Commits