Hey All;
I am using master pages. My master page contains my header div along with some links for navigating the site. This master page is in the root folder of my site.
I then have pages that inherit from this master page in various folders throughout the site.
However, my problem is that I can't use relative pathing when I define the URLs in my master page. This is because the files that use the master page aren't in the same folder as the master page so the relative link is no longer valid. This because when the page is compiled the relative link acts relative to the file inheriting the master page, and not the master page itself.
An alternative to this would be to use absolute url links, however, this will just give me headaches when switching between development and live.
Is there any way I can force the links to remain relative links to the master page, and not to the inheriting pages.
Thanks for any and all help in this matter.
Sean.![[peace] [peace] [peace]](/data/assets/smilies/peace.gif)
I am using master pages. My master page contains my header div along with some links for navigating the site. This master page is in the root folder of my site.
I then have pages that inherit from this master page in various folders throughout the site.
However, my problem is that I can't use relative pathing when I define the URLs in my master page. This is because the files that use the master page aren't in the same folder as the master page so the relative link is no longer valid. This because when the page is compiled the relative link acts relative to the file inheriting the master page, and not the master page itself.
An alternative to this would be to use absolute url links, however, this will just give me headaches when switching between development and live.
Is there any way I can force the links to remain relative links to the master page, and not to the inheriting pages.
Thanks for any and all help in this matter.
Sean.
![[peace] [peace] [peace]](/data/assets/smilies/peace.gif)