How to call a cms page in a phtml file in magento?

自作多情 提交于 2019-12-04 15:19:10

Try the below code in your phtml file

 $page = Mage::getModel('cms/page')->load('home_page','identifier');
 echo $page->getContent();
vivek kumar tripathi

This code check if cms page is active then it will display page content

$page = Mage::getModel('cms/page')->load('top_offer','identifier');

echo $page->getIsActive()?$page->getContent():'';
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!