WebsiteBaker Community Forum

WebsiteBaker Support (2.8.x) => Templates, Menus & Design => Topic started by: Lotus on February 12, 2008, 04:26:26 PM

Title: Menu link as a first page doesnt work
Post by: Lotus on February 12, 2008, 04:26:26 PM
Have a multilingual page and, as in the totorial, using the first level of pages as a holder for each language. With different configured instances of show_menu you can schange language on one menu and navigate from another. As the first page is the one you see when enter the site it has to be a menu link and not a ordinary page with content.

My probelm is now the a menu link doesnt work, wb says (genereted by wb) "enter the mainpage here" (or something like that) in the content area with a link to / (again). A menu link simply doesnt work as a first page.
my menu link is configured /pages/home

File structure:
GB->
->HOME
->ETC

SE->
->HEM
->ETC

The URL shows www.site.se/
When it shuld have shown www.site.se/pages/home.php

A workaround for this was to use an intropage and put in a php redirect.

Title: Re: Menu link as a first page doesnt work
Post by: spida on March 27, 2008, 05:46:58 PM
Hi Lotus,

it would be great if you'd post the redirect code  :-)

Regards,
Ayshe
Title: Re: Menu link as a first page doesnt work
Post by: doc on March 27, 2008, 05:55:27 PM
Hello,

the code of the intro page (/pages/intro.php) should look like this:
Code: [Select]
<?php 
// redirect to a specifc start page per default
header(&#39;Location: http://yourdomain.com/pages/en/yourstartpage.php&#39;); 
?>

Regards Christian
Title: Re: Menu link as a first page doesnt work
Post by: spida on April 03, 2008, 10:54:37 AM
TX!  :-D