How to call cms page content in phtml file.
- Create a cms page
- Put the code in your phtml file (where you want to the call cms page content)
Code:
<?php echo Mage::getModel('cms/page')->load('home_page_new')->getContent();?>
If there are some image url in your cms page content and you want to display on fronend use the following code:
<?php echo $this->helper('cms')->getBlockTemplateProcessor()->filter(Mage::getModel('cms/page')->load('home_page_new')->getContent());?>
0 Comments