WebsiteBaker Support (2.8.x) > Templates, Menus & Design

2nd menu show on all pages

(1/2) > >>

applepie:
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.

nibz:
You can use:

--- Code: ---show_menu2(0, SM2_ROOT+1, SM2_START);

--- End code ---

See: Tutorial link removed 404

applepie:
Thanks. It is stil not showing on all pages. It only show when the parent is selected.  Is there something else missing?

nibz:
You could use:

--- Code: ---<?php show_menu2(0, SM2_ROOT+1, SM2_START,SM2_ALL); ?>

--- End code ---

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);

--- End quote ---

The second number (9 in the example) is the id of the parant page.

mdemaree99:
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

Navigation

[0] Message Index

[#] Next page

Go to full version