Follow by Email

Monday, April 9, 2012

How to get CMS Page ID in Magento

Here is the code to get CMS Page ID in Magento
function getCurrentCmsPage() {
$pageId = Mage::getBlockSingleton('cms/page')->getPage()->getIdentifier();
return $pageId;
}

1 comment: