WebsiteBaker Support (2.8.x) > Templates, Menus & Design
Set a home page or persuade show_menu2 to use full URL?
(1/1)
snerpton:
Dear all,
I am using show_menu2 to create a horizontal navigational menu at the top of every page on a site. The trouble is, is that the designer wants the home page to appear last in the list. So for example my menu might look something like this:
[Page 1] [Page 2] [Page 3] ... [Home]
The menu functions fine and all the links work etc, but because 'Page 1' is listed first in my list of pages WB thinks this is my home page. I had a quick play with mod_rewrite to make all domain.com urls silently redirect to domain.com/pages/home.php, but I then discovered that the 'Page 1' link didn't work. It seems show_menu2 produced links in the following manner:
Page 1: domain.com/
Page 2: domain.com/pages/page_2.php
Page 3: domain.com/pages/page_3.php
home: domain.com/pages/home.php
Note the lack of a page for Page 1.
Is there a way to set a page as a home page even though it isn't first in the list of pages, or to encourage show_menu to provide the link domain.com/pages/page_1.php for Page 1?
Any help or pointers in the right direction would be very much appreciated.
Kind regards,
Chris
applepie:
Hi Chris, Have you found the answer yet? I thought it is a matter of naming your page. Instead of naming Home for home page, you name it Page 1, etc.
sonar:
I know it is an old topic but I had the same problem.
This is my solution for it:
In /framework/class.frontend.php
Original:
--- Code: ---// Check if link is same as first page link, and if so change to WB URL
if($page['link'] == $this->default_link AND !INTRO_PAGE) {
$link = WB_URL;
} else {
$link = $this->page_link($page['link']);
}
--- End code ---
Changed:
--- Code: ---// Check if link is same as first page link, and if so change to WB URL
$link = $this->page_link($page['link']);
--- End code ---
Ruud:
Yes, it is an old topic :)
The easy way is to use the settings pages and switch on the intro page functionality.
If you do not create an intropage, WB will still use the full url for the homepage.
Navigation
[0] Message Index
Go to full version