Pages

Tuesday, June 25, 2013

Current page variable in magento

Get title
<?=Mage::getSingleton(‘cms/page’)->getTitle()?>

Get Identifier
<? echo Mage::getBlockSingleton(‘cms/page’)->getPage()->getIdentifier()?>

Get Page ID
<? echo Mage::getBlockSingleton(‘cms/page’)->getPage()->getId()?>

No comments:

Post a Comment