Home
Download
Add-ons
Help
Forum
Organisation
Project
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email?
May 26, 2012, 08:32:29 PM
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
Search:
Advanced search
Interested in joining the WebsiteBaker team?
For more Information read
here
or on our
new website
.
155552
Posts in
21715
Topics by
7737
Members
Latest Member:
gx-world
WebsiteBaker Community Forum
English
Help & Support
(Moderators:
Argos
,
badknight
)
WB 2.8.2 - pages not showing in menu
Pages: [
1
]
Go Down
Author
Topic: WB 2.8.2 - pages not showing in menu (Read 497 times)
mwestrik
Offline
Posts: 18
WB 2.8.2 - pages not showing in menu
«
on:
September 24, 2011, 11:22:11 AM »
Hi, after creating several websites in 2.8.1, without any problems, I'm now working on two websites in 2.8.2
Both sites do have the same problem now: not all pages created are actually shown in the website. I've checked the database, the pages section, and everything seems to be normal.
Example:
http://www.bello-horizonte.es/index.php
The language menu on top does only include Nedrlands, but there are pages for English en Spanish as well - not showing.
In the left hand menu, the page "producten" actually does have three subpages. They are not listed. They are listed in the page manager however.
I did have a page "collecties" just above "producten", with two subpages, but those subpages were not shown. The ones in "producten" were. Then I deleted "collecties", in order to create a new page, which might show the subpages, but instead the subpages of "producten" dissapeared.
Very strange!
Anybody got an idea what happens, or what I do wrong?
«
Last Edit: September 24, 2011, 01:25:54 PM by mwestrik
»
Logged
dbs
WebsiteBaker Org e.V.
Offline
Posts: 3719
Re: WB 2.8.2 - pages not showing on website
«
Reply #1 on:
September 24, 2011, 11:42:12 AM »
hi, don't know, maybe Page-Languages enabled under Settings?
http://www.websitebaker2.org/en/help/user-guide/working-with-wb/settings.php
Logged
mwestrik
Offline
Posts: 18
Re: WB 2.8.2 - pages not showing on website
«
Reply #2 on:
September 24, 2011, 12:30:23 PM »
No, no problems there. It's not that all pages are not listed, just a few. And when I delete some and add some, others will disappear from the menu.
Logged
mwestrik
Offline
Posts: 18
Re: WB 2.8.2 - pages not showing in menu
«
Reply #3 on:
September 24, 2011, 02:39:20 PM »
A small addition: it does occur with both show_menu AND show_menu2. The language menu is show_menu2, and the left hand menu is show_menu.
Logged
Ruud
WebsiteBaker Org e.V.
Offline
Posts: 2297
Re: WB 2.8.2 - pages not showing in menu
«
Reply #4 on:
September 24, 2011, 09:48:35 PM »
check the language settings for all pages.
By just guessing your english startpage (english.php) is can see the resulting page is in language NL (/pages/english/bello-horizonte.php?lang=NL)
The language is used by selecting the pages to show by show_menu(2).
Make sure all pages in the language structure will have the correct language set too.
Logged
Professional WebsiteBaker Solutions
mwestrik
Offline
Posts: 18
Re: WB 2.8.2 - pages not showing in menu
«
Reply #5 on:
September 25, 2011, 12:03:01 PM »
Hi Ruud,
thanks for the comment. I've changed it, but unfortunately it does not matter. The language menu now is show_menu2 because I hoped that would help. Both menus were show_menu.
The level0 menu with the three language pages nederlands.php, english.php and espano.php are just menu links, with the first page of the site included. The three pages had the correct language settings, the included ones not. Now they have, and still the same problem.
In the level1 and level2 menu on the left hand side does only contain dutch pages. Right now, the "collecties" page does not show its two subpages. However, when I remove the page "collecties", then the subpages of the next page, in this case "products", will disappear from the front end. They still are in the backend, in the database and so on. Also checked the database itself, and all pages are listed there, in the same way.
Logged
Ruud
WebsiteBaker Org e.V.
Offline
Posts: 2297
Re: WB 2.8.2 - pages not showing in menu
«
Reply #6 on:
September 25, 2011, 09:18:28 PM »
First: forget about using showmenu for the language selector.
If you are in "English mode" it will not show menu pages in Dutch and vice versa.
I always do language selectors manual/hardcoded.
About the missing subpages..
Can you show the show_menu2 call you are using?
Logged
Professional WebsiteBaker Solutions
mwestrik
Offline
Posts: 18
Re: WB 2.8.2 - pages not showing in menu
«
Reply #7 on:
September 25, 2011, 10:36:30 PM »
At this moment, it is not a show_menu2, but: <?php show_menu(0,1,4,false); ?> in order to exclude level 0 and show all subpages up until level 4. To be honest, I've never used the submenu2 before, and I've built over 15 WB websites already, these being the first ones in WB2.8.2 instead of 2.8.1...
Logged
DarkViper
Development Team
Offline
Posts: 1253
Re: WB 2.8.2 - pages not showing in menu
«
Reply #8 on:
September 26, 2011, 12:12:51 AM »
Try following configuration please:
Code: (Menu-Structure)
EN (menu=1, lang=en) menu_link => Item EN-1
- Item EN-1 (menu=1, lang=en)
- - subItem EN-1.1 (menu=1, lang=en)
- - - subItem EN-1.1.1 (menu=1, lang=en)
- - - subItem EN-1.1.2 (menu=1, lang=en)
- - subItem EN-1.2 (menu=1, lang=en)
- - - subItem EN-1.2.1 (menu=1, lang=en)
- - - subItem EN-1.2.2 (menu=1, lang=en)
- Item EN-2 (menu=1, lang=en)
- - subItem EN-2.1 (menu=1, lang=en)
- - - subItem EN-2.1.1 (menu=1, lang=en)
- - - subItem EN-2.1.2 (menu=1, lang=en)
NL (menu=1, lang=nl) menu_link => Item NL-1
- Item NL-1 (menu=1, lang=nl)
- - subItem NL-1.1 (menu=1, lang=nl)
- - - subItem NL-1.1.1 (menu=1, lang=nl)
- - - subItem NL-1.1.2 (menu=1, lang=nl)
- - subItem NL-1.2 (menu=1, lang=nl)
- - - subItem NL-1.2.1 (menu=1, lang=nl)
- - - subItem NL-1.2.2 (menu=1, lang=nl)
- Item NL-2 (menu=1, lang=nl)
- - subItem NL-2.1 (menu=1, lang=nl)
- - - subItem NL-2.1.1 (menu=1, lang=nl)
- - - subItem NL-2.1.2 (menu=1, lang=nl)
Code: (Language-menue)
<?php
show_menu2
(
1
,
SM2_ROOT
,
SM2_START
,
SM2_ALL
|
SM2_PRETTY
);
?>
Code: (Main-menue)
<?php
show_menu2
(
1
,
SM2_ROOT
+
1
,
SM2_START
+
3
,
SM2_TRIM
|
SM2_PRETTY
);
?>
the additional format strings of sm2 you must build by yourself. See help in README.en.txt
There is nothing strange, nothing 'magic'...
simply one, strong hierarchically menu only with more then one language.
Take care: show_menu() is no longer supported and should be replaced by show_menu2().
«
Last Edit: September 26, 2011, 12:53:04 AM by DarkViper
»
Logged
Anleitungen lesen und selber nachdenken ist anstrengend... Da lass ich doch lieber andere für mich denken...
In
1984
: Nineteen Eighty-Four is a unrealistic utopia!!
In
2012
: Nineteen Eighty-Four is a little piece only of our reality!!
mwestrik
Offline
Posts: 18
Re: WB 2.8.2 - pages not showing in menu
«
Reply #9 on:
September 26, 2011, 01:23:42 PM »
Hi DarkViper,
Thanks for the explanation. The menu structure already was as you described it. The show_menu2 code you gave for the main menu did work a lot better. Changing it slightly from SM2_TRIM to SM2_ALL made it perfect. Main menu problem solved therefore. Many thanks!
For the language menu however, still the same problem. You have made clear what happens, though. As I understand it right, on the Dutch pages, the SM2_START pages English and Espanol are NOT shown because those pages are not in Dutch. That could obviously easily be solved by hardcoding the language links, but I'm as always curious whether there would be a solution or not.
The reason I wanted it to be generated instead of hardcoding was, again, a shortcoming of my own knowledge. For one of my sites, I did hardcode the language menu. My error was that I coded to the first page
in
the language, f.i. english/index.php. Problem of course was that, if a customer changed the name of the intropage, from index.php to company.php for instance, the link would be broken. I was unaware that you can also, more logical, make a link to english.php instead!
Logged
Pages: [
1
]
Go Up
Jump to:
Please select a destination:
-----------------------------
General
-----------------------------
=> General Announcements
=> Security Announcements
=> Documentation
=> WebsiteBaker Website Showcase
=> Guest Area & Off-Topic
-----------------------------
English
-----------------------------
=> WebsiteBaker 2.9
===> Announcements
===> Help/Support
=====> Modules / Extensions
===> Suggestions
===> Software bugs
=> Help & Support
=> Modules
=> Droplets (PHP code for use with Droplet module) & Snippets (raw PHP code)
=> jQuery
=> Templates, Menus & Design
=> WebsiteBaker Language Files
=> WebsiteBaker 2.x discussion
=> WebsiteBaker 3
=> Archive (posts up to 2007)
-----------------------------
Deutsch (German)
-----------------------------
=> Ankündigungen
=> WebsiteBaker 2.9
===> Ankündigungen
===> Hilfe/Support
=====> Module / Extensions
===> Vorschläge
===> Softwarefehler
===> Erfahrungs und Testberichte
=> Hilfe/Support
=> Module & Snippets
=> Templates & Design
=> Tutorials
=> jQuery
=> Diskussion über WB
=> Off-Topic
=> Archiv für Themen bis 2007
-----------------------------
Nederlands (Dutch)
-----------------------------
=> Aankondigingen
=> Hulp & Ondersteuning
=> Niet-Terzake (Off Topic)
-----------------------------
Francais (French)
-----------------------------
=> Help/Support
-----------------------------
Italiano (Italian)
-----------------------------
=> Help/Support
-----------------------------
Bakery (WB shop module)
-----------------------------
=> Bakery English
=> Bakery Deutsch
-----------------------------
KeepInTouch (Multi Contact Module)
-----------------------------
=> KeepInTouch English
=> KeepInTouch Deutsch
Loading...