Page 1 of 1

Accordion Menu (SOLVED)

Posted: Fri Oct 19, 2012 7:43 am
by Dave59
Good morning
This probably comes under don't know javascript.
I have been trying for weeks to get an Accordion menu to work on a two level menu.
I am using CMSMS 1.11.2. (Which I see is currently number 1 in CMS critic awards. Well done!)
I have tried to adapt various accordion menus for static sites.
It is clear the I have to get the second menu level into a div tag and then swap the CSS to get it to expand. I think?
I need to detect the url to get the second level to show for the current page. I tried to make a tag for this, which just increased the mess.
I can then style my div #menu and div#menusecond.
I then need to swap the styles. I tried to use sizzle for this.
The menu in the admin is exactly what I am trying to achieve(with different styling)
Also looked for a template with such a menu then I could restyle the template around the menu. Also no success.
I have now reached the point of having to completely reinstall CMSMS to get a clean restart and get ride of all the rubbish I tried, as I am sure I have gone in the wrong direction and can't find my way back. For this reason I have not posted a link as the site is empty again.
All works well with a top first level menu and a side second level. Which means the menu engine must detect the current page url.
Oh I nearly forgot, I have set up pretty url s with htacces, (works well)don't know if that complicates the issue.
I have put the installation in a sub folder "http://www.thesite/draft/index.html. This will change when the site is complete.
All the references I found in the forum go back to 2004.
Any tips as where I should be looking. In fact any help will be greatfully accepted.
Thanks
Dave

Re: Accordion Menu

Posted: Fri Oct 19, 2012 5:00 pm
by Dr.CSS

Re: Accordion Menu

Posted: Sat Oct 20, 2012 7:24 am
by Dave59
Thats what you get for being over confident.
Done this before so I don't need the demo pages. So I didn't install them.
Waisted hours and hours of my time.
Thanks for answering me.
Dave