2 menus on same page

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
leighbax
Advanced
Advanced
Posts: 10
Joined: Tue Nov 11, 2003 10:39 pm
Location: Suffolk UK

2 menus on same page

Post by leighbax »

Hi,
Is it possible to have 2 separate menus on the same page, i.e. 1 that is common to all pages on a site, and another which only appears on certain pages?
If so does the code all go in the same data file, or do you need to have separate files with different names?
Leigh
User avatar
Maz
Milonic God
Milonic God
Posts: 1717
Joined: Fri Jun 06, 2003 11:39 pm
Location: San Francisco
Contact:

Post by Maz »

Not sure if you are saying adding a second menu to some pages or having an alternate menu on some pages.

Where I have 2 menus on some pages I have 2 scripts with different names and different style names for the menu and submenus.

You only need to change the menu-data file names and its style names, the other js files will do the same job.

So your answer is yes, even if you have one different menu on some pages you need to call that menu by a different name from the other.

Regards,
maz
User avatar
Hergio
Milonic God
Milonic God
Posts: 1123
Joined: Wed Jun 12, 2002 7:46 pm
Location: Rochester, NY

Post by Hergio »

Yea, just have two menu_data files in your page (obviously differently named and containg menus with different names as Maz stated). You should only import the milonic_src and mmenudom files ONCE per page.
Dave Hergert
Software Engineer
"Helping to make the menu better, one :?: at a time."
leighbax
Advanced
Advanced
Posts: 10
Joined: Tue Nov 11, 2003 10:39 pm
Location: Suffolk UK

Post by leighbax »

Maz and Hergio,
Thanks for your replies, I think I have a clear idea of how to go about it, I will experiment and see if it works, if not I will be back.
This seems a great support forum for a terrific product.
Regards
Leigh
Post Reply