Milonic provide full featured pull down web menus for some of the worlds largest companies
click here to see what it can do for you

Download Milonic DHTML Menu
Buy Milonic DHTML Menu

Back To Start Of Archive
Taken From The Forum: Help & Support for DHTML Menu Version 5+
Forum Topic: Click to view post
Last Updated: Saturday July 14 2012 - 06:07:57

Files in different directories, keep multiple menu copies?

Poster: gummyworms
Dated: Wednesday January 12 2005 - 1:51:23 GMT


I was wondering how you guys deal with having your files in different directories.

I want to keep the paths relative, so that links work online and offline, but since I have different directories, does this mean that I have to have a seperate menu_data.js for each different directory level so that I can have menus work?


Poster: gummyworms
Dated: Wednesday January 12 2005 - 2:00:59 GMT

Ahhh...I think I found the answer using an extra "/"


instead of


which brings me to another question. I don't have the directory I'm working in at the very root of the server, because there are many other files on the server. Is there a way to make the server think its already at the root without actually setting a new /htdoc location? (I'm using apache btw)

Poster: kevin3442
Dated: Wednesday January 12 2005 - 17:47:05 GMT

I suppose you could try the BASE tag in the head of your documents, to define a base url. Then your relative urls (e.g., people/page.php rather than /people/page.php) would start from the base. For example, in the head section:
<base href="">

Then a link with an href="people/page.php" should actually resolve to (at lease if I remember correctly!)

Only thing is... I don't know if urls specified in the Milonic items would also use the BASE url. Never tried it. If you try it, I'd be interested to know what happens.