top button
Flag Notify
    Connect to us
      Facebook Login
      Site Registration

Facebook Login
Site Registration

How will you call a CMS page in your module’s PHTML file?

+4 votes
65 views
How will you call a CMS page in your module’s PHTML file?
posted Jul 6, 2016 by Vrije Mani Upadhyay

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

2 Answers

0 votes

Try the below code in your phtml file

 $page = Mage::getModel('cms/page')->load('home_page','identifier');
 echo $page->getContent();
answer Jul 6, 2016 by Manikandan J
0 votes

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():'';

answer Sep 2, 2016 by Magento_ocodewire
Contact Us
+91 9880187415
sales@queryhome.net
support@queryhome.net
#280, 3rd floor, 5th Main
6th Sector, HSR Layout
Bangalore-560102
Karnataka INDIA.
QUERY HOME
...