dev-master
9999999-devMagento Cms By Locale Extension
OSL-3.0
The Development Requires
- webgriffe/magento_ant_build dev-master
Magento Cms By Locale Extension
Magento extension that generates static content for each store views grouped by locale., (*1)
Please, use Magento Composer Installer and add webgriffe/cms-by-locale-extension
to your dependencies. Also add this repository to your composer.json
., (*2)
"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
., (*3)
In the first scenario, create a class like, (*4)
class Ernani_Cms_Model_Entity_Setup extends Webgriffe_Cms_Model_Entity_Setup
{ }
, (*5)
In the second, add the following lines in config.xml
:, (*6)
<config> <global> <resources> <YOUR_MODULE_ALIAS_setup> <setup> <module>YOUR_MODULE_NAME</module> <class>Webgriffe_Cms_Model_Entity_Setup</class> </setup> </YOUR_MODULE_ALIAS_setup> </resources> </global> </config>
Then, in your data scripts, you may call the methods:
* $this->generateCmsPage($urlKey, $content)
* $this->generateStaticBlock($identifier, $content)
, (*7)
Magento Stores:
Note: the store view with code it_it
has locale it_IT
, all others are en_US
, (*8)
data-install-1.0.0.php:, (*9)
<?php /* @var $installer Webgriffe_Cms_Model_Entity_Setup */ $installer = $this; $installer->startSetup(); $installer->generateCmsPage('temporary', 'Temporary content'); $installer->endSetup();
Cms pages created: , (*10)
Magento Cms By Locale Extension
OSL-3.0