WebsiteBaker Community Forum

WebsiteBaker Support (2.8.x) => Templates, Menus & Design => Topic started by: paulvincent on June 04, 2009, 06:52:44 PM

Title: hardlink Menu
Post by: paulvincent on June 04, 2009, 06:52:44 PM
Hello Communiy,

i´ve got one more question: I have a "hardcoded" menu, every link is like this:

Quote
<li><a href="index.php" id="start"><span></span>Start</a></li>

The problem comes with all pages which are in the folder "pages", like:

Quote
<li><a href="/wb2/pages/vita.php" id="vita"><span></span>Vita</a></li>

but WB doesn´t accept this kind of linking, but the curious thing is: If i manually type the correct link in the browser adress bar, for example http://www.thomaswiegand-saenger.de/wb2/pages/klangfarben.php all other hardcoded menu links work for this session. If I restart the browser, the same game again, no pages beside "start (index.php)" are found. Can you explain that behaviour?

The page is online at: http://www.thomaswiegand-saenger.de/wb2
Title: Re: hardlink Menu
Post by: kweitzel on June 04, 2009, 08:51:52 PM
Build the URL's with the complete path then if you really need them hardcoded:

Code: [Select]
<li><a href="<?php echo WB_URL;?>/pages/vita.php" id="vita"><span></span>Vita</a></li>
cheers

Klaus
Title: Re: hardlink Menu
Post by: paulvincent on June 04, 2009, 10:58:23 PM
works!

thanks!