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());
4
  • 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. Commented Jul 4, 2018 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
    Commented Jul 4, 2018 at 9:44
  • are you sure the page is correct? Can you view the page as "a page" in the browser?
    – Marius
    Commented Jul 4, 2018 at 12:02
  • @Marius yes, that works.
    – Lucas
    Commented Jul 4, 2018 at 12:08

1 Answer 1

1

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 and acknowledge you have read our privacy policy.

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