• Free Domain Names with Yearly hosting

You are here: Home Joomla Joomla Forums

spacer
Welcome, Guest
Please Login or Register.    Lost Password?

Menus Won't Stay Open With Multiple Instances
(1 viewing) (1) Guest
Go to bottomPage: 1234
TOPIC: Menus Won't Stay Open With Multiple Instances
#963
Menus Won't Stay Open With Multiple Instances 2 Years ago Karma: 0  
I have sort of a complicated scenario. One of the modules I've incorporated into my Joomla! site already has a dropdown menu that works when you click on it (no mouseover). I am trying to use SBD Rollover menu to mimic that behaviour and after a few hours of studying up on CSS I have something that works. The scenario is as follows in the left hand side of my site:

Home Cooking (SBD Rollover Menu)
Meal Planning (SBD Rollover Menu)
Techniques (SBD Rollover Menu)
Recipes (mod_rr_navmenu)
Gadgets (SBD Rollover Menu)
Utensils (SBD Rollover Menu)

The top menu behaves just fine. Click on it and it expands. Pick a selection from the sub menu and it displays then the menu is left open when the page redisplays. The other 4 don't behave the same way. They open fine, you can select sub menu items, but when the page refreshes the menu collapses %^( DARN!

You can see if for yourself here:

www.homecookingforsmarties.com

I've read the post about multiple menus, but didn't find anything in there that would fix this problem.
TheHellYouSay (User)
Fresh Boarder
Posts: 16
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#964
Re:Menus Won't Stay Open With Multiple Instances 2 Years ago Karma: 14  
Hi,

You have stumbled across an error within the module which was only brought to our attention a post or two before this one...

The issue is with the other menus on the page, for some reason the first menu is obtaining the correct Itemid for the menu, then the other menus pick up the wrong Itemid and so cann the wrong menu to expand - which in most cases will not be a valid top level menu item.

We think we have a potential fix for this and hope to get an update out shortly, we will let you know when its released.

Many Thanks
SimpleByDesign (Admin)
Moderator
Posts: 435
graph
User Offline Click here to see the profile of this user
Gender: Male Birthdate: 1977-09-21
The administrator has disabled public write access.
 
#965
Re:Menus Won't Stay Open With Multiple Instances 2 Years ago Karma: 0  
Thank you - I'll wait for the update.

I was just playing around with adding some alert statements to the Javascript and it's interesting because that then alters the behavior. It makes the first menu quit working too

Any-who, I'm sure you know your code better than I EVER will so I will just be patient. And I just want to tell you I REALLY like this menu!!!
TheHellYouSay (User)
Fresh Boarder
Posts: 16
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#966
Re:Menus Won't Stay Open With Multiple Instances 2 Years ago Karma: 0  
I got this to work in my case (without hover functionality, click only) by changing this one line of code:

if( runOk == 1 && currentId != id ){

To be this instead:

if (1==1) {

Meaning that it should unconditionally execute the following lines of code:

if (1 == 1) {
runOk = 0;
window.setTimeout( 'switchRun()', <?php echo $params->get( 'time_delay' ) ?> );
currentId = id;
window.setTimeout( 'AccordionMenu.openDtById(''+id+'')', <?php echo $params->get( 'menu_delay' ) ?> );
}

I have no idea (yet) if this breaks anything else. Nor do I know if it works with hovering and so on.
TheHellYouSay (User)
Fresh Boarder
Posts: 16
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#968
Re:Menus Won't Stay Open With Multiple Instances 2 Years ago Karma: 14  
Hi,

Sorry for the delay, can you please try one thing and let me know if it affects the menu please - of course this is on the original code . Assuming your running the latest version please can you set the module option 'Use Cookies' to No.

Please let me know if there is any change.

Many Thanks
SimpleByDesign (Admin)
Moderator
Posts: 435
graph
User Offline Click here to see the profile of this user
Gender: Male Birthdate: 1977-09-21
The administrator has disabled public write access.
 
#969
Re:Menus Won't Stay Open With Multiple Instances 2 Years ago Karma: 0  
I guess I'm not running the latest version. There is no "Use Cookies" option on the module admin screen for the mod_sbd_rollmenu. I'll go look for the latest version...sorry if that's all it is...
TheHellYouSay (User)
Fresh Boarder
Posts: 16
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
Go to topPage: 1234
Copyright © Simple By Design Limited