I have a site which includes multiple pages and sub-pages. I have about 5 different pages (on the same site) that needs different dhtl-menus to run at pages. Five different pages and five different menus (with their own submenus and their own information).
If I try to make the
function setValue()
{
mn=getMenuByName("Menu1")
menu=eval("menu"+mn)
menu[10]=parseInt(document.f1.t1.value)
}
to call different menus on different pages, the result is that only one menu is visible on all the pages, even if the mn=getMenuByName("Menu1") is changed.
And the menu that is visible is the one that has the
1, // Always Visible
variable as 1.
I have tried to make different named menu_array.js files including different menus.. that didn't work. (I also changed the script )
<SCRIPT language=JavaScript src="menu_array.js" type=text/javascript></SCRIPT>
to
<SCRIPT language=JavaScript src="menu1_array.js" type=text/javascript></SCRIPT>
and on the second page it was..
<SCRIPT language=JavaScript src="menu2_array.js" type=text/javascript></SCRIPT>
and so fort...
It didn't work.

I also tried to make many menus inside the menu_array.js file with all the visibility as 0. That didn't show anything.
So only solution would be that I make all the different pages that I want to include different menus.. in different subfolder in the server. But thats a really crappy solution concerning all the other code that has to suffer just because of the menu.
I hope that somebody with more knowledge about the menu could help me in this matter.