Welcome, Guest. Please login or register.
Did you miss your activation email?
May 27, 2012, 06:05:18 AM

Login with username, password and session length
Search:     Advanced search
Wollen Sie dem WebsiteBaker Team beitreten?
Nähere Informationen finden Sie unter hier und auf unserer neuen Webseite.
155555 Posts in 21715 Topics by 7737 Members
Latest Member: gx-world
* Home Help Search Login Register
Pages: [1]   Go Down
Print
Author Topic: Menu link as home page  (Read 721 times)
evildmp

Offline Offline

Posts: 64


« on: January 11, 2008, 07:16:24 AM »

It seems that WB doesn't like it if the first page in its structure is a menu link page, rather than a WB page.

For the home page of a site, I need to use a page which isn't actually in WB. It's a WordPress page, though the WordPress page does in fact call up WB's menus - it calls up config.php, framework/class.frontend.php and so on.

Instead, WB displays some sort of intro page with a message saying "To see the site click here".
Logged
doc
Guest
« Reply #1 on: January 11, 2008, 10:08:21 AM »

Hi,

activate the intro page feautre via the WB backend. Then upload a page called intro.php which contains a PHP redirection to whatever page you want and try again. Search the forum for the PHP redirection code.

Regards Christian
Logged
evildmp

Offline Offline

Posts: 64


« Reply #2 on: January 11, 2008, 02:18:17 PM »

activate the intro page feautre via the WB backend. Then upload a page called intro.php which contains a PHP redirection to whatever page you want and try again. Search the forum for the PHP redirection code.

Thanks, I tried that - however, it seems that the code which handles intro pages assumes that the destination page will be in a /pages directory (it looks for for /pages/intro.php), whereas I'm not using one. But I could be wrong about this.

I guess I could just create /pages/into.php, but it seems like a messy solution.

Daniele
Logged
doc
Guest
« Reply #3 on: January 11, 2008, 03:32:45 PM »

Hello,

create a intro.php (locally on your computer) with the following content:
Code:
<?php 
// redirect to English introduction page
header('Location: http://yourdomain.com/pages/XX/page_to_show.php'); 
?>

Upload it via FTP and check if it works.

Regards Christian
Logged
ruebenwurzel
WebsiteBaker Org e.V.

Offline Offline

Posts: 7973



WWW
« Reply #4 on: January 11, 2008, 03:37:51 PM »

Hello,

Quote
it seems that the code which handles intro pages assumes that the destination page will be in a /pages directory

du musst die intro.php natürlich per ftp ins /pages Verzeichnis laden, nirgendwo sonst hin.

Matthias
Logged
Pages: [1]   Go Up
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!