Welcome, Guest. Please login or register.
Did you miss your activation email?
February 12, 2012, 02:54:43 AM

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.
149621 Posts in 21098 Topics by 7537 Members
Latest Member: lotte2
* Home Help Search Login Register
Pages: [1]   Go Down
Print
Author Topic: Show parent title  (Read 956 times)
friet

Offline Offline

Posts: 12


« on: January 07, 2008, 08:03:12 AM »

I have searched but couldnt find anything on the forum.

I want to show the (if there is one) parent title and the page title.

[parent_title] -  [page_title]

Anybody who knows what I have to change in the frontend functions?
Logged
doc
Guest
« Reply #1 on: January 07, 2008, 08:05:54 AM »

Hello,

have a look at this section on the docu website.

Regards Christian
Logged
friet

Offline Offline

Posts: 12


« Reply #2 on: January 07, 2008, 08:15:54 AM »

I see a PARENT constant to get the ID, but how do I display it's title? (Not really a programer, sorry Smiley )
Logged
Argos
Moderator
**
Offline Offline

Posts: 2084


WWW
« Reply #3 on: January 07, 2008, 07:37:39 PM »

I would like to have this option as well, so if anyone knows the answer or a fix, please post!

I also would like to have the option to show the title of a certain page higher in the parent tree. For example first level or second level parent title.

So for example, I want to show the title tag of second level on all pages in this tree, which would be "Green Products" in this case.

Products
- Green products
- - Item 1
- - Item 2
Logged

Jurgen Nijhuis
Argos Media
Heiloo, The Netherlands
WB Showcase: http://www.mywebsitebaker.com/pages/showcase.php?v&category_id=1242&count=30
----------------------------------------------------------------
Please don't request personal support, use the forums!
Argos
Moderator
**
Offline Offline

Posts: 2084


WWW
« Reply #4 on: January 08, 2008, 12:41:21 AM »

After hours of trial and error I found a solution using the menu function. I use this command to show the page title of the root of the page, regardless of the level of the page itself. Works like a charm. See http://www.emilynijhuis.nl/cms (look at the category title above each left menu).

Code:
<?php show_menu2(0SM2_ROOTSM2_MAXSM2_CRUMB|SM2_CURRTREE,'<h2>[menu_title]</h2>','','','',false,false); ?>
« Last Edit: January 08, 2008, 06:18:47 PM by Argos » Logged

Jurgen Nijhuis
Argos Media
Heiloo, The Netherlands
WB Showcase: http://www.mywebsitebaker.com/pages/showcase.php?v&category_id=1242&count=30
----------------------------------------------------------------
Please don't request personal support, use the forums!
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!