How do I use the menu for pages that are not in my root?

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
frederth
Beginner
Beginner
Posts: 5
Joined: Mon Feb 20, 2006 5:16 pm
Contact:

How do I use the menu for pages that are not in my root?

Post by frederth »

I am up and running with my new menu--and I LOVE it. One minor problem...All the links in my menu_data.js file are relative. When I access the menu from a page that is not in my root menu, it doesn't work. It shows, but all the links are 404 Not Found errors. Is there a way to fix this without redoing my menu_data file with absolute references?

Thanks.
Migru
Milonic Guru
Milonic Guru
Posts: 669
Joined: Tue Nov 01, 2005 8:22 pm
Location: Hamburg - Germany
Contact:

Post by Migru »

Hi

"redoing" is not as much work as it seems, using the replace function of the editor............
Best is to keep alle the pages in the root directory, if you want relative addressing only. If not, I think there is no way out to edit the menu data file accordingly.

Michael
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

Hi Frederth,

Can you provide a url so people can test and see what's up? It's very hard to provide specific information, especially with regard paths, without having the site so everyone can see what's up and test things.

Ruth
User avatar
John
 Team
 Team
Posts: 5967
Joined: Sun May 19, 2002 8:23 pm
Location: Phoenix, AZ
Contact:

Post by John »

If your menu system is called from the same server (it should be), there shouldn't be a problem using server-relative pathing to get to what you need. As Ruth mentioned, the previously requested URL is really necessary.
John
Post Reply