1

I have loaded a cms page in a template file. But after an edit to the cms page, I get an white page instead of this cms page. I am using the following line to get the cms page.

echo $this->helper('cms')->getBlockTemplateProcessor()->filter(Mage::getModel('cms/page')->load($this->getPrivacyCmsPageIdentifier())->getContent());
  • Probably when you saved the cms page, you saved it for specific store and you are trying to get the page in another store view. – Dinesh Yadav Jul 4 '18 at 9:30
  • Nope, I use the cms page that is just for the Dutch storeview. At the dutch storeview I get also a white page. – Lucas Jul 4 '18 at 9:44
  • are you sure the page is correct? Can you view the page as "a page" in the browser? – Marius Jul 4 '18 at 12:02
  • @Marius yes, that works. – Lucas Jul 4 '18 at 12:08
0

Try this

$pageIdentifier = 'your_page_identifier';
$pageContent = Mage::getModel('cms/page')->load($pageIdentifier, 'identifier')->getContent();

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.