WebsiteBaker Support (2.8.x) > Templates, Menus & Design
hidden pages and show_menu2
vyni:
Hi everybody,
You call things like that a crystal-ball? That´s one!
@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.
--- End quote ---
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: ---<?php show_menu2(0, SM2_ROOT+1, SM2_ALL, SM2_ALL, false, "\n</li>", false, false, false, '<ul id="header_menu" class="menu">'); ?>
--- End code ---
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
erpe0812:
Hy Vyni
--- Quote ---You call things like that a crystal-ball? That´s one!
--- End quote ---
try your link without beeing logged in :-D
rgds
erpe
Mux:
--- Quote from: vyni on November 10, 2008, 12:20:57 PM ---Did You try to set the hidden page to private?
--- End quote ---
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.
--- End quote ---
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: ---<?php show_menu2(0, SM2_ROOT+1, SM2_ALL, SM2_ALL, false, "\n</li>", false, false, false, '<ul id="header_menu" class="menu">'); ?>
--- End code ---
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
Navigation
[0] Message Index
[*] Previous page
Go to full version