I know i've been down this path before and changed it, but the code looks slightly different than the previous NuStyle Accordion menu. Can you make it so the the Fluid menu is defaulted to "closed" when first loaded? Glenn
This turns out to be very simple. Find layout.js in your modules/templatecodes/scripts/unpacked folder . Take this code if ($.cookie('openItem')) { var openItem = $.cookie('openItem'); }else{ openItem = 'tcmenu_1'; } and simply remove the else so you have if ($.cookie('openItem')) { var openItem = $.cookie('openItem'); } You then have 2 choices. You can copy this new file and put in the folder above (wrting over the packed version of it) or you can compress it and put it in the folder above (writing over the packed version of it).
Hi, Sorry I haven't submitted the ticket, it's on the list of things to do. I'll try this code change you posted and get back to you, thanks for replying, you guys have great support. Glenn
I tested it so it will work. Notice it is the unpacked version you need to edit and then copy this into the directory just above it. Best then after testing that you pack it is you can; there are lots of tools on the internet to do that. Which one you use is upto you. Just ype packjavascript in a search engine. This one seems reasonable /packer/
Sorry, I'm not really sure what you mean by "pack it"? If I just go to the server, download the file (FTP), change it, then upload it (overwriting the old one), will that not work? What do you mean about packing and repacking and having to use special software? I've not heard of this before? Glenn
You pack .js files to reduce there size and in theory it will increase the speed of your site. Search on google for a utility to do that and what it is about. There are many. If you want to do it the straightforward way without packing then make the edit to layout.js in the unpacked folder and just copy it over the one in the directory above (this is currently packed/compressed). If you do this all will work fine. You will not gain much from packing in this instance.
Main Menu - I want to turn it off At the risk of jumping in on this thread, this appears to give instructions for turning the Main Menu on. I have the opposite issue - I want to turn it off. If you can simply confirm if I follow the opposite instructions, or can point me in the right direction, I would appreciate it. Thanks Gary
This code keep close the accordion: if ($.cookie('openItem')) { var openItem = $.cookie('tcmenu_1'); }