Is there a good method for retrieving the page title and url of the parent CMS page when using Magento's CMS Hierarchy?
- About Us
I need to be able to get the About Us page title on Culture and Contact pages.
The only method I've come up with is this terrible code which grabs the parent page's title:
<?php echo ($_tree->getData("page_title")); ?>
Right now it's showing the current page title instead of the parent page title: http://grab.by/Drl4 as I'm using the code:
<?php echo str_replace(Mage::getStoreConfig('design/head/title_prefix'), '', $this->getLayout()->getBlock('head')->getTitle()); ?>
Any ideas of a reusable and clean method to grab the parent CMS page's title and url?
side note : I have magento-enterprice editition with me.