![]() |
|
Print Parent Page Title? - Printable Version +- ZenphotoCMS Forum (https://forum.zenphoto.org) +-- Forum: Support (https://forum.zenphoto.org/forum-1.html) +--- Forum: General support (https://forum.zenphoto.org/forum-4.html) +--- Thread: Print Parent Page Title? (/thread-7974.html) |
Print Parent Page Title? - gwmbox - 2010-12-19 Is there a way to print the pages parent title? As in if the page is a sub page of another page how do I get it to print the parent title? Cheers GW Print Parent Page Title? - micheall - 2010-12-19 You could probably do something with using the getPageParentID() function and setting of objects to extract title of the parent. Edit: printParentPagesBreadcrumb() That does what you need. Print Parent Page Title? - gwmbox - 2010-12-19 Resolved, well sort of... I have used the Custom Data field Cheers GW Print Parent Page Title? - gwmbox - 2010-12-19 Yes but the printParentPagesBreadcrumb prints all the breadcrumbs, I only wanted one up from it Cheers GW Print Parent Page Title? - micheall - 2010-12-19 Hmmm... wonder if you could array the output of it. The other option would be to do as I intially put and extract the title via the pageparentid. I'll see if I can come up with something that does that for yah. Print Parent Page Title? - acrylian - 2010-12-19 It helps to look at the documentation sometimes, guys! If you check this link So 1.3.1.2 has: In the nighty/coming 1.3.2 this usage is incorporated into the object model to be more consequent (the usage of the above is actually the same except the first line): Print Parent Page Title? - micheall - 2010-12-19 I was just looking through the index right now for hints, lol. Hadn't done that in a few versions. Thanks for that acrylian. Nice to know I was on the right path though Print Parent Page Title? - gwmbox - 2010-12-19 Acrylian, please be assured I do read and 'try' to understand the documentation. While I am learning my knowledge of php is still lacking, especially when I get confused between classes and how those classes are activated within certain functions. Most of my reaches out for help are due to my lack of being able to work it out for myself, but I do try, for quite some time too Thanks GW Print Parent Page Title? - acrylian - 2010-12-19 Sure, just trying to motivate a little...;-) |