WebsiteBaker Logo
  • *
  • Templates
  • Help
  • Add-ons
  • Download
  • Home
*
Welcome, Guest. Please login or register.

Login with username, password and session length
 

News


WebsiteBaker 2.13.6 is now available!


Will it continue with WB? It goes on! | Geht es mit WB weiter? Es geht weiter!
https://forum.websitebaker.org/index.php/topic,32340.msg226702.html#msg226702


The forum email address board@websitebaker.org is working again
https://forum.websitebaker.org/index.php/topic,32358.0.html


R.I.P Dietmar (luisehahne) and thank you for all your valuable work for WB
https://forum.websitebaker.org/index.php/topic,32355.0.html


* Support WebsiteBaker

Your donations will help to:

  • Pay for our dedicated server
  • Pay for domain registration
  • and much more!

You can donate by clicking on the button below.


  • Home
  • Help
  • Search
  • Login
  • Register

  • WebsiteBaker Community Forum »
  • WebsiteBaker Support (2.8.x) »
  • Templates, Menus & Design »
  • hidden pages and show_menu2
  • Print
Pages: [1]   Go Down

Author Topic: hidden pages and show_menu2  (Read 6017 times)

Mux

  • Guest
hidden pages and show_menu2
« 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
Logged

Offline BerndJM

  • Posts: 1764
  • Gender: Male
Re: hidden pages and show_menu2
« Reply #1 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
Logged
In theory, there is no difference between theory and practice. But, in practice, there is.

mr-fan

  • Guest
Re: hidden pages and show_menu2
« Reply #2 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
Logged

Offline Stefek

  • Posts: 6177
  • Gender: Male
  • ("ړ)
Re: hidden pages and show_menu2
« Reply #3 on: November 09, 2008, 05:13:30 PM »
Quote from: 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

You can see mine


 :-D

[/off-topic]

Regards,
Stefek
Logged
"Gemeinsam schafft man mehr."

gemeinsam
1. mehreren Personen oder Dingen in gleicher Weise gehörend, eigen
2. in Gemeinschaft [unternommen, zu bewältigen]; zusammen, miteinander
#Duden

Mux

  • Guest
Re: hidden pages and show_menu2
« Reply #4 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.
Logged

vyni

  • Guest
Re: hidden pages and show_menu2
« Reply #5 on: November 10, 2008, 12:20:57 PM »
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.

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(0, SM2_ROOT+1, SM2_ALL, SM2_ALL, false, "\n</li>", false, false, false, &#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
« Last Edit: November 10, 2008, 12:33:48 PM by vyni »
Logged

erpe0812

  • Guest
Re: hidden pages and show_menu2
« Reply #6 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
Logged

Mux

  • Guest
Re: hidden pages and show_menu2
« Reply #7 on: November 10, 2008, 04:30:56 PM »
Quote from: vyni on November 10, 2008, 12:20:57 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(0, SM2_ROOT+1, SM2_ALL, SM2_ALL, false, "\n</li>", false, false, false, &#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
Logged

  • Print
Pages: [1]   Go Up
  • WebsiteBaker Community Forum »
  • WebsiteBaker Support (2.8.x) »
  • Templates, Menus & Design »
  • hidden pages and show_menu2
 

  • SMF 2.0.19 | SMF © 2017, Simple Machines
  • XHTML
  • RSS
  • WAP2