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 »
  • 2nd menu show on all pages
  • Print
Pages: [1]   Go Down

Author Topic: 2nd menu show on all pages  (Read 7690 times)

apple

  • Guest
2nd menu show on all pages
« on: June 20, 2013, 09:26:44 AM »
Hi I am trying to look for a template or make my present template to show the 2nd menu on all pages. How do I do that? Can anyone show point me to an existing discussion or show me how? Thanks.
Logged

Offline nibz

  • Posts: 684
  • Gender: Male
Re: 2nd menu show on all pages
« Reply #1 on: June 20, 2013, 12:34:26 PM »
You can use:
Code: [Select]
show_menu2(0, SM2_ROOT+1, SM2_START);

See: Tutorial link removed 404
« Last Edit: December 31, 2017, 03:57:11 PM by Luisehahne »
Logged

apple

  • Guest
Re: 2nd menu show on all pages
« Reply #2 on: June 20, 2013, 01:24:04 PM »
Thanks. It is stil not showing on all pages. It only show when the parent is selected.  Is there something else missing?
Logged

Offline nibz

  • Posts: 684
  • Gender: Male
Re: 2nd menu show on all pages
« Reply #3 on: June 20, 2013, 02:42:04 PM »
You could use:
Code: [Select]
<?php show_menu2(0, SM2_ROOT+1, SM2_START,SM2_ALL); ?>

It shows all pages that are on the second level.

If only want to show child pages of a specific page you could use specchild just lke mdemaree99 says:
Quote from: mdemaree99 on June 20, 2013, 06:53:48 PM
specchild
Children of a specific page (page = Cogs)

show_menu2(0, 9, SM2_ALL, SM2_ALL);

The second number (9 in the example) is the id of the parant page.
« Last Edit: June 20, 2013, 08:42:30 PM by nibz »
Logged

Offline mdemaree99

  • Posts: 102
Re: 2nd menu show on all pages
« Reply #4 on: June 20, 2013, 06:53:48 PM »
I was thinking this route...

specchild
Children of a specific page (page = Cogs)

show_menu2(0, 9, SM2_ALL, SM2_ALL); [page_id of Cogs is 9]

•Little
•Big
Logged

Offline nibz

  • Posts: 684
  • Gender: Male
Re: 2nd menu show on all pages
« Reply #5 on: June 20, 2013, 08:43:33 PM »
Tested my method it didn't work.

Changed it to a working method.. see my post above.
Logged

Offline Vincent

  • Posts: 376
  • Gender: Male
    • websites voor ondernemers
Re: 2nd menu show on all pages
« Reply #6 on: June 21, 2013, 12:58:24 PM »
Don't know if I understand your question correctly, but try this:

Code: [Select]
<?php  // second menu
    
show_menu2(2, $wb->page['root_parent'], SM2_ALL, SM2_ALL | SM2_PRETTY); ?>

Regards,
Vincent
Logged

  • Print
Pages: [1]   Go Up
  • WebsiteBaker Community Forum »
  • WebsiteBaker Support (2.8.x) »
  • Templates, Menus & Design »
  • 2nd menu show on all pages
 

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