Magento Cms By Locale Extension

dev-master 2015-01-02 13:32 UTC

This package is auto-updated.

Last update: 2023-03-07 17:26:28 UTC


Magento extension that generates static content for each store views grouped by locale.


Please, use Magento Composer Installer and add webgriffe/cms-by-locale-extension to your dependencies. Also add this repository to your composer.json.

"repositories": [
        "type": "vcs",
        "url": "git@github.com:webgriffe/cms-by-locale-extension.git"


You may extend your Setup class from Webgriffe_Cms_Model_Entity_Setup or some config lines in your extension config.xml.

In the first scenario, create a class like

class Ernani_Cms_Model_Entity_Setup extends Webgriffe_Cms_Model_Entity_Setup { }

In the second, add the following lines in config.xml:


Then, in your data scripts, you may call the methods:

  • $this->generateCmsPage($urlKey, $content)
  • $this->generateStaticBlock($identifier, $content)


Magento Stores: image Note: the store view with code it_it has locale it_IT, all others are en_US


/* @var $installer Webgriffe_Cms_Model_Entity_Setup */
$installer = $this;


$installer->generateCmsPage('temporary', 'Temporary content');


Cms pages created: image