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:38
dinamically changing links
Poster: CHARLIEGOLF
Dated: Monday March 15 2004 - 10:59:28 GMT
I made and index page (index2.php). In this page I have a menu div in wich I include my menu.php.
Inside menu.php there is my milonic menu and it works very well.
I made a copy of index2.php in the directory personal to have the same layout. The question is that the links in the milonic menu doesn't fit beacuse now I am in a subdirectory.
I would like to know if there is a way to change links dinamically or otherwise I have to put another copy of menu.php but this time in this new subdirectory?
ex
index2.php
menu
home (url:index2.php)
personal (url:personal/index2.php)
personal/index2.php
menu
home(url:../index2php);
personal(url: index2.php);
sorry for my english which is not so good
Poster: Andy
Dated: Tuesday March 16 2004 - 8:36:05 GMT
Always declare your links with the full path in mind.
In other words, if you include the prefix / this will always start from the top.
so change "../index.php" to "/index.php" - No matter where you are in your directory structure "/index.php" will always be the home page.
Cheers
Andy