Page 1 of 1

Best way to create a multilevel menu

Posted: Thu Apr 14, 2011 10:46 am
by klevis miho
What is the best (or a good) way to create a multilevel menu?

Re: Best way to create a multilevel menu

Posted: Thu Apr 14, 2011 10:48 am
by Jonah Bron
What do you mean? Like, a Javascript drop-down menu with sub-menus?

Re: Best way to create a multilevel menu

Posted: Thu Apr 14, 2011 10:52 am
by klevis miho
For example the menus are in a database table, have id's and parent id's.
I am not interested in how the menu will look.
Also what is the best way to check the active menu item?

Re: Best way to create a multilevel menu

Posted: Tue Apr 19, 2011 12:29 pm
by Joshwaa
What exactly do you mean?

Re: Best way to create a multilevel menu

Posted: Thu Apr 21, 2011 2:56 am
by eivind
You're thinking "best way" as in cleanest code with least processing time? :)

Re: Best way to create a multilevel menu

Posted: Wed Apr 27, 2011 1:55 am
by waytoecommerce
In our view css based menu will be good. If we are going to user jquery or js scripts it will create problem in loading and other problems. Css menu work in all the browser successfully.

Re: Best way to create a multilevel menu

Posted: Mon May 09, 2011 3:54 pm
by flying_circus
klevis miho wrote:For example the menus are in a database table, have id's and parent id's.
I am not interested in how the menu will look.
Also what is the best way to check the active menu item?
The way you describe is what I am most familiar with and have found it to work well. Years ago when I used oscommerce, they would pass a $_GET variable in the format of: 00_11_22_33.

This string was easily exploded into an array and could be used to build a breadcrumb as well as expanding/collapsing of menu levels, and current selection. The only downfall is that it's easy for a user to break.

Re: Best way to create a multilevel menu

Posted: Tue Jun 07, 2011 12:03 am
by dddmx3
You could simple HTML then spice it up with CSS?