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
Hello,
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?
Thanks,
Shawn
Poster: gummyworms
Dated: Wednesday January 12 2005 - 2:00:59 GMT
Ahhh...I think I found the answer using an extra "/"
/people/page.php
instead of
people/page.php
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:
Code:
<base href="http://www.mysite.com/site1/root/">
Then a link with an href="people/page.php" should actually resolve to http://www.mysite.com/site1/root/people/page.php (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.
Cheers,
Kevin
Industrial Strength JavaScript and DHTML Menus
About Us
Testimonials
Contact Us
Our Distinguished Clients
Investing in Non-Profits
Where Are We
Privacy Policy
Software Licensing Agreement
DHTML JavaScript Menu
Product Information
Page Integration
Quick Reference Guides
Embedding Into a Table or DIV
Purchase
