K
Klaus Andersen
Hi group
I realy need help for this. I must say that i am pretty unskilled as
programmer, so please dont be to tough with me
I am trying to make a menu for my cms.
I got a db that looks like this:
------------------------------------------------
uid id level menuitem
------------------------------------------------
0 873 0 Top level 1
873 874 1 sub 1 subpage
0 875 0 Top level 2
875 876 1 sub 2 subpage 1
875 877 1 sub 2 subpage 2
873 878 1 sub 1 subpage 2
0 879 0 Top level 3
879 880 1 sub 3 subpage 1
879 885 1 sub 3 subpage 2
879 886 1 sub 3 subpage 3
886 887 2 sub 4 subpage 1
886 888 2 sub 4 subpage 2
------------------------------------------------
What i want is a top menu and for each top menu item i want a left menu -
and for the left menu items i want subitems and so on.When users click menu
items they must be highlighted - also sub and subsub.
It is most important that users can save the url in "favorites" and that all
the menu steps are highlighted as they where when the user first chose the
page - when they enter the page from "favorites" og type in the url again
later.
That means that a page like "artikel.asp?id=888" should leave a highlighted
top menu (879) a left side sublevel (886) and a subsub level (888).
Can some of you please help me with a code snipet?
Best regards to group
KA
I realy need help for this. I must say that i am pretty unskilled as
programmer, so please dont be to tough with me
I am trying to make a menu for my cms.
I got a db that looks like this:
------------------------------------------------
uid id level menuitem
------------------------------------------------
0 873 0 Top level 1
873 874 1 sub 1 subpage
0 875 0 Top level 2
875 876 1 sub 2 subpage 1
875 877 1 sub 2 subpage 2
873 878 1 sub 1 subpage 2
0 879 0 Top level 3
879 880 1 sub 3 subpage 1
879 885 1 sub 3 subpage 2
879 886 1 sub 3 subpage 3
886 887 2 sub 4 subpage 1
886 888 2 sub 4 subpage 2
------------------------------------------------
What i want is a top menu and for each top menu item i want a left menu -
and for the left menu items i want subitems and so on.When users click menu
items they must be highlighted - also sub and subsub.
It is most important that users can save the url in "favorites" and that all
the menu steps are highlighted as they where when the user first chose the
page - when they enter the page from "favorites" og type in the url again
later.
That means that a page like "artikel.asp?id=888" should leave a highlighted
top menu (879) a left side sublevel (886) and a subsub level (888).
Can some of you please help me with a code snipet?
Best regards to group
KA