dinamically changing links

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
CHARLIEGOLF
Beginner
Beginner
Posts: 4
Joined: Mon Mar 15, 2004 11:44 am
Contact:

dinamically changing links

Post by CHARLIEGOLF »

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
:?
User avatar
Andy
Milonic
Milonic
Posts: 3308
Joined: Sun May 19, 2002 8:23 pm
Location: Menu Developer
Contact:

Post by Andy »

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
CHARLIEGOLF
Beginner
Beginner
Posts: 4
Joined: Mon Mar 15, 2004 11:44 am
Contact:

Post by CHARLIEGOLF »

TANKS A LOT!!!! ciao :D
Post Reply