WebsiteBaker Community Forum

WebsiteBaker Support (2.8.x) => Templates, Menus & Design => Topic started by: Mux on November 09, 2008, 01:21:02 AM

Title: hidden pages and show_menu2
Post by: Mux on November 09, 2008, 01:21:02 AM
Hey, don't know if it's the right title for my problem...I use show_menu2 for my navigation. I've got a couple of pages which I don't want to be shown in the navigation menu. So I made them invisible/ hidden, but those pages can be accessed by links within some pages. When I go to one of those hidden pages the navigation items completely disappear. But of course, I want the navigation to be shown on any pages. Can somebody help me?
cheers, Mux
Title: Re: hidden pages and show_menu2
Post by: BerndJM on November 09, 2008, 02:09:51 AM
Hi,

would you please provide us your SM2 call ... my crystall ball is out of order at the moment ;-)

Regards Bernd
Title: Re: hidden pages and show_menu2
Post by: mr-fan on November 09, 2008, 04:59:25 PM
Quote
... my crystall ball is out of order at the moment wink

i want see a pic of your crystall ball  :-D

i 've devined all WB pro's have such a thing!!!

sry for this offtopic...

regards martin
Title: Re: hidden pages and show_menu2
Post by: Stefek on November 09, 2008, 05:13:30 PM
Quote
... my crystall ball is out of order at the moment wink

i want see a pic of your crystall ball  :-D

You can see mine
(http://pinny-online.de/gallery/photos/showit/thumbs/aglowingone.jpg_t400.jpg)

 :-D

[/off-topic]

Regards,
Stefek
Title: Re: hidden pages and show_menu2
Post by: Mux on November 09, 2008, 09:08:33 PM
ok, I didn't think that the problem had got to do anything with the show_menu2-call...
here it is:
show_menu2(0, SM2_ROOT+1, SM2_START,SM2_TRIM|SM2_NUMCLASS)

here is a short description of my navigation:
german-->2nd level item1-->sub-items...
          -->2nd level item2-->sub-items...
          --> some more items-->sub-items...
          --> hidden german pages -->sub-items...
english-->same as above

In  the mentioned navigation I want only to be shown the second level items. All worked fine with all pages before I started to include the hidden ones... as I just mentioned above: when I call a hidden page all navigation items completely disappear.
Title: Re: hidden pages and show_menu2
Post by: vyni on November 10, 2008, 12:20:57 PM
Hi everybody,

You call things like that a crystal-ball? That´s one! (http://www.spoka.at/pages/nuetzliches/kugel.php)

@Mux
Did You try to set the hidden page to private?
Quote
In  the mentioned navigation I want only to be shown the second level items. All worked fine with all pages before I started to include the hidden ones... as I just mentioned above: when I call a hidden page all navigation items completely disappear.

english is not my language - but if I read this and translate it to german.......
I say: it does what You want it to do.
You say - You want it to show only 2nd level - than You call from 3rd level - why You suppose it to show any further menu, if You are on 3rd level - if You limited it to show up only 2nd level  :?

confused me.

Edit: I was playing around with sm2 - test and take (modify) this call
Code: [Select]
<?php show_menu2(0SM2_ROOT+1SM2_ALLSM2_ALLfalse"\n</li>"falsefalsefalse, &#39;<ul id="header_menu" class="menu">&#39;); ?>this one show´s the menu even if You call a page under a hidden one - even if the called page is set to hidden
Title: Re: hidden pages and show_menu2
Post by: erpe0812 on November 10, 2008, 12:41:08 PM
Hy Vyni

Quote
You call things like that a crystal-ball? That´s one!

try your link without beeing logged in  :-D

rgds

erpe
Title: Re: hidden pages and show_menu2
Post by: Mux on November 10, 2008, 04:30:56 PM
Did You try to set the hidden page to private?
No, because the hidden pages are public pages which I don't want to be linked in the navigation. That's all.

Quote
In  the mentioned navigation I want only to be shown the second level items. All worked fine with all pages before I started to include the hidden ones... as I just mentioned above: when I call a hidden page all navigation items completely disappear.
Ok, I'll translate it to german: der Aufruf sm_root+1 bedeutet ja, dass unabhängig vom aktuellen "Aufenthaltsort" immer das zweite Menulevel angezeigt wird. Und mein linkes Menu soll genau dieses zweite Level anzeigen, immer und überall, egal ob ich auf einer versteckten Seite, auf einer aus dem ersten, zweiten oder dritten Level bin.   Das eine hat ja mit dem anderen auch überhaupt nichts zu tun. Die versteckten Seiten sollen halt nur nicht im Menu auftauchen, weil sie nicht so wichtig und weil sie auf anderen Seiten verlinkt sind.
Wie gesagt, außer mit den versteckten Seiten ist auch alles so wie es sein soll, aber dort wird überhaupt kein Menu mehr angezeigt.



Edit: I was playing around with sm2 - test and take (modify) this call
Code: [Select]
<?php show_menu2(0SM2_ROOT+1SM2_ALLSM2_ALLfalse"\n</li>"falsefalsefalse, &#39;<ul id="header_menu" class="menu">&#39;); ?>this one show´s the menu even if You call a page under a hidden one - even if the called page is set to hidden
[/quote]
no this one does't work for me. It shows the menu on the hidden pages too, but with this call I get ALL menu items from all levels in my navigation.

Mux