Call-back icon  Sales: Call 877.832.5289 (N America)|310.295.4144 (International)

Magento

eCommerce Software for Online Growth

Magento Forum

   
Display page title
 
taavi
Jr. Member
 
Total Posts:  10
Joined:  2008-04-13
 

If I use <?php echo $this->getTitle() ?> for example in 2columns-left.phtml then it doesn’t output the title. How can I display page title anywhere I like?

 
Magento Community Magento Community
Magento Community
Magento Community
 
Iterative Media
Jr. Member
 
Avatar
Total Posts:  3
Joined:  2008-05-12
 

Try to replace:

<?php echo $this->getTitle() ?>
with following code:
<?php echo Mage::getSingleton('cms/page')->getTitle() ?>

Hope this will help.

 Signature 

Iterative Media, Inc.
IterativeMedia.com - Agile eCommerce for the Enlightened.

 
Magento Community Magento Community
Magento Community
Magento Community
 
till
Member
 
Total Posts:  36
Joined:  2007-12-17
 
Iterative Media - 18 June 2008 07:06 AM

Try to replace:

<?php echo $this->getTitle() ?>
with following code:
<?php echo Mage::getSingleton('cms/page')->getTitle() ?>

Hope this will help.

Thanks, worked very well indeed!

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
    Back to top
 
Sales: Call 877.832.5289 (North America) 310.295.4144 (International)
© Copyright 2008 Varien. Magento, eCommerce software, is a trademark of Irubin Consulting Inc. DBA Varien
Privacy Policy|Terms of Service
Magento Community Count
53214 users|714 users currently online|107262 forum posts