Question
Menu links in Include file
Hi folks,
I am knocking up a new site and after many template-fueled complications in the past I have decided to try using includes for the header, footer, and menus. Brilliant! it all works. But the only drawback I have is that the links will not work for pages that are in different directories.
The only solution I can think of is that I use an absolute address for every link - which seems a bit of a nightmare, particularly as I would have to name them for my testing environment then change them when I went live every time.
Are absolute links the only solution or am I missing a trick here?
Cheers
Dave
I am knocking up a new site and after many template-fueled complications in the past I have decided to try using includes for the header, footer, and menus. Brilliant! it all works. But the only drawback I have is that the links will not work for pages that are in different directories.
The only solution I can think of is that I use an absolute address for every link - which seems a bit of a nightmare, particularly as I would have to name them for my testing environment then change them when I went live every time.
Are absolute links the only solution or am I missing a trick here?
Cheers
Dave