Revision: 19906
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at November 3, 2009 11:31 by nate63179
Initial Code
/** * Returns the identifier for the currently rendered CMS page. * If current page is not from CMS, null is returned. * @return String | Null */ public function getCurrentCmsPage() { $dataCurrentPage = $this->getHelper('cms/page')->getPage()->getData(); if ($dataCurrentPage) { $identifierCurrentPage = $dataCurrentPage['identifier']; return $identifierCurrentPage; } return; }
Initial URL
Initial Description
A function for returning the ID of the current CMS page
Initial Title
Magento: get current CMS page ID
Initial Tags
php, magento
Initial Language
PHP