Home
Download
Add-ons
Help
Forum
Organisation
Project
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email?
May 26, 2012, 07:34:32 PM
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
Search:
Advanced search
Wollen Sie dem WebsiteBaker Team beitreten?
Nähere Informationen finden Sie unter
hier
und auf unserer
neuen Webseite
.
155550
Posts in
21714
Topics by
7737
Members
Latest Member:
gx-world
WebsiteBaker Community Forum
English
Help & Support
(Moderators:
Argos
,
badknight
)
How to display the name of the 'parent page'
Pages: [
1
]
Go Down
Author
Topic: How to display the name of the 'parent page' (Read 367 times)
D. Peeters
Offline
Posts: 128
How to display the name of the 'parent page'
«
on:
August 06, 2011, 02:32:39 PM »
Hi all,
My menu structure is like this:
Country
-Area
--Producer
---Product
Is there a way to show a visitor who is on page 'Product' the Country, Area and Producer?
Thanks in advance!!
Logged
badknight
Moderator
Offline
Posts: 246
Re: How to display the name of the 'parent page'
«
Reply #1 on:
August 06, 2011, 02:42:26 PM »
maybe this helps you:
breadcrumb from the german thread
Logged
Ich würde gern die Welt verändern, doch Gott gibt mir den Quellcode nicht...
D. Peeters
Offline
Posts: 128
Re: How to display the name of the 'parent page'
«
Reply #2 on:
August 06, 2011, 08:29:18 PM »
Thanks to you (and Google Translate
): it works!
Logged
D. Peeters
Offline
Posts: 128
Re: How to display the name of the 'parent page'
«
Reply #3 on:
August 06, 2011, 08:48:55 PM »
Btw is there a way to show the page id of the page 'Country' on the page 'Product'?
Logged
pcwacht
AddOn Development
Offline
Posts: 2859
Re: How to display the name of the 'parent page'
«
Reply #4 on:
August 06, 2011, 09:27:46 PM »
In php -> echo PARENT;
With showmenu2 ->
http://code.jellycan.com/files/show_menu2-README.txt
something like:
// get the page_id of the root item for the current page
$nTreeRootId = (int) show_menu2(0, SM2_CURR, SM2_START, SM2_CRUMB|SM2_BUFFER, '[parent]', '', '', '');
See examples here ->
http://code.jellycan.com/sm2test/pages/enterprise/jams/strawberry/strawberry-amp-lemon.php
Have fun,
John
Logged
http://www.ictwacht.nl
= Dutch ICT info
http://www.pcwacht.nl
= My first
both still work in progress, since years.....
Pages: [
1
]
Go Up
Jump to:
Please select a destination:
-----------------------------
General
-----------------------------
=> General Announcements
=> Security Announcements
=> Documentation
=> WebsiteBaker Website Showcase
=> Guest Area & Off-Topic
-----------------------------
English
-----------------------------
=> WebsiteBaker 2.9
===> Announcements
===> Help/Support
=====> Modules / Extensions
===> Suggestions
===> Software bugs
=> Help & Support
=> Modules
=> Droplets (PHP code for use with Droplet module) & Snippets (raw PHP code)
=> jQuery
=> Templates, Menus & Design
=> WebsiteBaker Language Files
=> WebsiteBaker 2.x discussion
=> WebsiteBaker 3
=> Archive (posts up to 2007)
-----------------------------
Deutsch (German)
-----------------------------
=> Ankündigungen
=> WebsiteBaker 2.9
===> Ankündigungen
===> Hilfe/Support
=====> Module / Extensions
===> Vorschläge
===> Softwarefehler
===> Erfahrungs und Testberichte
=> Hilfe/Support
=> Module & Snippets
=> Templates & Design
=> Tutorials
=> jQuery
=> Diskussion über WB
=> Off-Topic
=> Archiv für Themen bis 2007
-----------------------------
Nederlands (Dutch)
-----------------------------
=> Aankondigingen
=> Hulp & Ondersteuning
=> Niet-Terzake (Off Topic)
-----------------------------
Francais (French)
-----------------------------
=> Help/Support
-----------------------------
Italiano (Italian)
-----------------------------
=> Help/Support
-----------------------------
Bakery (WB shop module)
-----------------------------
=> Bakery English
=> Bakery Deutsch
-----------------------------
KeepInTouch (Multi Contact Module)
-----------------------------
=> KeepInTouch English
=> KeepInTouch Deutsch
Loading...