Include Common Data Question

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
waynem
Advanced
Advanced
Posts: 19
Joined: Tue Jan 13, 2004 1:22 am

Include Common Data Question

Post by waynem »

I have a root site with many subdomains beneath it. I want to create a common index to all the sites that appears in the menu without having to edit each and every data file. While the list of sites is uniform, each subdomain may not have every menu item other subdomains have, so I can't just have a single data file that every subdomain points to.

Is there a way to use an include or similar statement that will point to a single file for all the common elements?
User avatar
Andy
Milonic
Milonic
Posts: 3308
Joined: Sun May 19, 2002 8:23 pm
Location: Menu Developer
Contact:

Post by Andy »

It might be better to do this using server side code.

If your servers are running PHP or ASP etc it shouldn't be too difficult to detect the [HTTP_HOST] variable from the server and deliver a menu_data.js file based on it.

You would have much more control over this method

Hope this helps,
Andy
Post Reply