Home
Download
Add-ons
Help
Forum
Organisation
Project
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email?
February 12, 2012, 04:54:08 AM
1 Hour
1 Day
1 Week
1 Month
Forever
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
.
149621
Posts in
21098
Topics by
7537
Members
Latest Member:
lotte2
WebsiteBaker Community Forum
English
Templates, Menus & Design
(Moderator:
Argos
)
showmenu2 show hidden pages
Pages: [
1
]
Go Down
Author
Topic: showmenu2 show hidden pages (Read 2209 times)
gila
Offline
Posts: 47
showmenu2 show hidden pages
«
on:
June 09, 2009, 05:56:05 PM »
hi, i use this function in my tamplates:
<?php show_menu2(0, SM2_ROOT+1);?>
i want to show only the second level, it works but if whit a static link i call one hidden page it show the link in the menu also if the pages is set to "hidden".
how can i do to not show the hidden pages?
i use wb 2.7
thank you
«
Last Edit: June 09, 2009, 05:58:43 PM by gila
»
Logged
whitsey
Offline
Posts: 14
show_menu2 displaying hidden pages
«
Reply #1 on:
June 30, 2009, 07:59:38 AM »
I am using show_menu2 module to display my menus.
I have added a page (privacy) that I have configured as "hidden"
This works ok on the menu system (i.e. Does not display privacy link) EXCEPT when I actually click on the page itself.
When I'm on the "privacy" page only, the Privacy link displays on the menu... Why is this so? If the page is configured as hidden, why does it display?
Is there a flag that I am not using in show_menu2 that will hide hidden pages?
Logged
brofield
Offline
Posts: 224
Re: show_menu2 displaying hidden pages
«
Reply #2 on:
June 30, 2009, 11:40:42 AM »
This is a somewhat recent change (see 4.8 from 8 Apr 2009). The change was so that items of a hidden menu item could still be shown as a menu. See
http://www.websitebaker2.org/forum/index.php/topic,2584.msg82237.html#msg82237
and the next few messages.
However, some other's haven't liked the change (e.g. Stefek), however I didn't get a reply to my message to him here
http://www.websitebaker2.org/forum/index.php/topic,2584.msg87606.html#msg87606
asking for more details.
If I can understand your use-case then I can probably make it work the way you want it to. Of course, I would prefer that there is a consensus for desired behaviour from more than one person.
Regards,
Brodie
Logged
Stefek
WebsiteBaker Org e.V.
Offline
Posts: 4753
Re: show_menu2 displaying hidden pages
«
Reply #3 on:
June 30, 2009, 12:00:08 PM »
Hello Brofield,
yes - my fault - I didn't answer - I just downgraded my SM2 Module and then forgot about this.
The behaviour is the same as Withsey has.
I just want the hidden pages to stay hidden, no matter if they are menu-current or not.
Regards,
Stefek
«
Last Edit: June 30, 2009, 12:28:35 PM by ruebenwurzel
»
Logged
"In a time of universal deceit, telling the truth becomes a revolutionary act."
- George Orwell, Nineteen eighty-four (1984)
whitsey
Offline
Posts: 14
Re: showmenu2 show hidden pages
«
Reply #4 on:
July 01, 2009, 12:44:47 AM »
Hi All,
I have found the answer...
In the show_menu2 v4.8 module code in the file 'include.php' I commented out the following and it works like a dream now (i.e. Hidden pages NEVER show on the menu)
include.php:line#529: $sql = str_replace('hidden', 'IGNOREME', $sql); // we want the hidden pages
Simply comment this line out and it works as you would expect with hidden pages.
Logged
sky writer
Offline
Posts: 252
Re: showmenu2 show hidden pages
«
Reply #5 on:
February 25, 2010, 12:43:18 AM »
Wish I had found this fix sooner. I thought I was losing it. All of a sudden all my hidden pages were showing in my menu structures. Very annoying, and troublesome in some cases.
I spent the day changing all the hidden page "menu" settings to a non-visible menu block. This worked, but it's an extra few steps on all my sites.
Thanks for finding the issue and reporting it!
Logged
Kaliphornia
Offline
Posts: 34
Re: showmenu2 show hidden pages
«
Reply #6 on:
March 06, 2010, 09:54:04 PM »
Quote from: whitsey on July 01, 2009, 12:44:47 AM
Hi All,
I have found the answer...
In the show_menu2 v4.8 module code in the file 'include.php' I commented out the following and it works like a dream now (i.e. Hidden pages NEVER show on the menu)
include.php:line#529: $sql = str_replace('hidden', 'IGNOREME', $sql); // we want the hidden pages
Simply comment this line out and it works as you would expect with hidden pages.
Sweet, I was having the same problem and this fixed it. Thanks!
Logged
Luisehahne
Board Member
Development Team
Offline
Posts: 2949
Re: showmenu2 show hidden pages
«
Reply #7 on:
March 06, 2010, 10:03:50 PM »
The problem were, that by fixing the show_menu2 a file were exchanged. In meantime it were corrected. Find here the coorect show_men2 Version 4.9
http://www.websitebaker-next.de/wb/modules/download_gallery/dlc.php?file=24
Dietmar
Logged
We are human beings - and nobody is perfect at all.
erpe
Offline
Posts: 2077
Re: showmenu2 show hidden pages
«
Reply #8 on:
March 11, 2010, 01:22:44 PM »
Is this one included in the current revision 1303?
rgds
erpe
Logged
stories about
be part of the Tutorials-Project
visit the jQuery-Showroom
Argos
Moderator
Offline
Posts: 2084
Re: showmenu2 show hidden pages
«
Reply #9 on:
March 11, 2010, 03:03:14 PM »
I hope so. I use rev.1287 and that one still has the bug. The fix works fine anyway.
Logged
Jurgen Nijhuis
Argos Media
Heiloo, The Netherlands
WB Showcase:
http://www.mywebsitebaker.com/pages/showcase.php?v&category_id=1242&count=30
----------------------------------------------------------------
Please don't request personal support, use the forums!
Olli
Offline
Posts: 288
Re: showmenu2 show hidden pages
«
Reply #10 on:
July 14, 2010, 08:49:48 PM »
Quote from: whitsey on July 01, 2009, 12:44:47 AM
Hi All,
I have found the answer...
In the show_menu2 v4.8 module code in the file 'include.php' I commented out the following and it works like a dream now (i.e. Hidden pages NEVER show on the menu)
include.php:line#529: $sql = str_replace('hidden', 'IGNOREME', $sql); // we want the hidden pages
Simply comment this line out and it works as you would expect with hidden pages.
thank you for the fix!
Logged
Pages: [
1
]
Go Up
Jump to:
Please select a destination:
-----------------------------
General
-----------------------------
=> General Announcements
-----------------------------
English
-----------------------------
=> Help & Support
-----------------------------
General
-----------------------------
=> WebsiteBaker Website Showcase
-----------------------------
English
-----------------------------
=> Modules
=> Templates, Menus & Design
=> WebsiteBaker Language Files
=> Droplets (PHP code for use with Droplet module) & Snippets (raw PHP code)
-----------------------------
General
-----------------------------
=> Guest Area & Off-Topic
-----------------------------
English
-----------------------------
=> WebsiteBaker 2.x discussion
=> WebsiteBaker 3
-----------------------------
General
-----------------------------
=> Security Announcements
-----------------------------
Deutsch (German)
-----------------------------
=> Hilfe/Support
-----------------------------
General
-----------------------------
=> Documentation
-----------------------------
Francais (French)
-----------------------------
=> Help/Support
-----------------------------
Italiano (Italian)
-----------------------------
=> Help/Support
-----------------------------
Deutsch (German)
-----------------------------
=> Ankündigungen
=> Diskussion über WB
=> Off-Topic
=> Archiv für Themen bis 2007
=> Module & Snippets
-----------------------------
English
-----------------------------
=> Archive (posts up to 2007)
-----------------------------
Nederlands (Dutch)
-----------------------------
=> Aankondigingen
=> Hulp & Ondersteuning
=> Niet-Terzake (Off Topic)
-----------------------------
Deutsch (German)
-----------------------------
=> jQuery
=> Tutorials
=> Templates & Design
-----------------------------
English
-----------------------------
=> jQuery
-----------------------------
Bakery (WB shop module)
-----------------------------
=> Bakery English
=> Bakery Deutsch
-----------------------------
English
-----------------------------
=> WebsiteBaker 2.9
===> Announcements
===> Help/Support
===> Suggestions
-----------------------------
Deutsch (German)
-----------------------------
=> WebsiteBaker 2.9
===> Ankündigungen
===> Hilfe/Support
===> Vorschläge
-----------------------------
English
-----------------------------
===> Software bugs
-----------------------------
Deutsch (German)
-----------------------------
===> Softwarefehler
=====> Module / Extensions
-----------------------------
English
-----------------------------
=====> Modules / Extensions
-----------------------------
Deutsch (German)
-----------------------------
===> Erfahrungs und Testberichte
-----------------------------
KeepInTouch (Multi Contact Module)
-----------------------------
=> KeepInTouch English
=> KeepInTouch Deutsch
Loading...