I need to update one cms page, but I have the same identifier 'home' for three pages in different stores. How can I update one page with need store.
My script has error: 'A page URL key for specified store already exists.';
Mage::app();
$cmsPage = Mage::getModel('cms/page')->setStore('need store')->load('home', 'identifier');
try {
$cmsPage->setRootTemplate('one_column');
} catch (Exception $ex) {
echo $ex->getMessage();
}
$cmsPage->save();
Mage::app()->cleanCache();