Magento get CMS page content without header/footer
Magento get CMS page content anywhere on the site without header and footer using below script. You may need to do this for displaying CMS page on part of the page, like popup or sidebar of the page without using header and footer of the CMS page that generally comes when loading the page from the CMS URL.
$page = Mage::getModel('cms/page'); $page->setStoreId(Mage::app()->getStore()->getId()); $page->load('CMS-IDENTIFIER-HERE','identifier'); //EDIT IN THIS LINE $helper = Mage::helper('cms'); $processor = $helper->getPageTemplateProcessor(); echo $html = $processor->filter($page->getContent());
It’s wonderful that you are getting thoughts from this paragraph as well
as from our argument made here.