Welcome, Guest. Please login or register.
Did you miss your activation email?
May 26, 2012, 06:02:16 PM

Login with username, password and session length
Search:     Advanced search
Interested in joining the WebsiteBaker team?
For more Information read here or on our new website.
155546 Posts in 21714 Topics by 7736 Members
Latest Member: chris85
* Home Help Search Login Register
Pages: [1]   Go Down
Print
Author Topic: sidebar navigation of specific pages only?  (Read 195 times)
pivey

Offline Offline

Posts: 33


« on: May 26, 2011, 05:16:02 PM »

Dear friendly WB users,

i am developing a hotel chain page, the chain has 8 different hotels in it.

i placed my main navigation at top like page A,B,C,D,E etc with its sub pages.

Now: i have 8 hotels, which have their sub-pages

I need that, while user is in a specific hotel, to call in sidebar ONLY navigation tree of THAT hotel.

Generally asking: how do i call ONLY specific navigation parts wherever i want?

I was reading docu and forum but still confused.. sorry
Your help is apreciated
Logged
kweitzel
Forum administrator
*****
Offline Offline

Posts: 6976


WWW
« Reply #1 on: May 26, 2011, 08:11:12 PM »

Show_Menu2 has a option to use a specific Page_ID as starting point for the menuoutput. Following is the way to go for you:

1) Query the RootParent of the current page_id and store it in a variable.
2) Use the variable with this RootParentID in the menu call

This will output the complete Submenu to which you then can put any options that show_menu2 offers.

cheers

Klaus
Logged

WebsiteBaker Org e.V. - for WebsiteBaker

pivey

Offline Offline

Posts: 33


« Reply #2 on: May 26, 2011, 08:18:25 PM »

that's why i love this forum.
Always helpful community.

WB is so nice, thx a lot for help
Logged
Pages: [1]   Go Up
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!