gosteev
2/25/2017 - 2:39 PM

changing columns layout of cms page via upgrade script (m1)

changing columns layout of cms page via upgrade script (m1)

<?php

$installer = $this;

$installer->startSetup();

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

if ($page->getId()) {
    $page->setRootTemplate('two_columns_left');
    $page->save();
}


$installer->endSetup();