Accordion Menu (SOLVED)

For discussion and questions related to CMS Specific templates and stylesheets (CSS), and themes. or layout issues. This is not a place for generic "I don't know CSS issues"
Locked
Dave59
Forum Members
Forum Members
Posts: 61
Joined: Sun Dec 27, 2009 5:18 pm

Accordion Menu (SOLVED)

Post 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
Last edited by Dave59 on Sat Oct 20, 2012 7:51 am, edited 2 times in total.
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: Accordion Menu

Post by Dr.CSS »

Dave59
Forum Members
Forum Members
Posts: 61
Joined: Sun Dec 27, 2009 5:18 pm

Re: Accordion Menu

Post 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
Locked

Return to “Layout and Design (CSS & HTML)”