{"id":24780445,"url":"https://github.com/webgriffe/cms-by-locale-extension","last_synced_at":"2025-03-24T04:40:30.603Z","repository":{"id":24981347,"uuid":"28399800","full_name":"webgriffe/cms-by-locale-extension","owner":"webgriffe","description":"Magento extension that generates static content for each store views grouped by locale.","archived":false,"fork":false,"pushed_at":"2015-01-02T13:32:45.000Z","size":228,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":11,"default_branch":"master","last_synced_at":"2025-01-29T10:35:51.554Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/webgriffe.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-12-23T13:36:48.000Z","updated_at":"2016-02-15T20:05:46.000Z","dependencies_parsed_at":"2022-08-23T12:21:03.501Z","dependency_job_id":null,"html_url":"https://github.com/webgriffe/cms-by-locale-extension","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webgriffe%2Fcms-by-locale-extension","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webgriffe%2Fcms-by-locale-extension/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webgriffe%2Fcms-by-locale-extension/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webgriffe%2Fcms-by-locale-extension/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/webgriffe","download_url":"https://codeload.github.com/webgriffe/cms-by-locale-extension/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245212107,"owners_count":20578438,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-01-29T10:30:50.332Z","updated_at":"2025-03-24T04:40:30.585Z","avatar_url":"https://github.com/webgriffe.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"Webgriffe Cms By Locale\n=======================\n\nMagento extension that generates static content for each store views grouped by locale.\n\nInstallation\n------------\n\nPlease, use [Magento Composer Installer](https://github.com/magento-hackathon/magento-composer-installer) and add `webgriffe/cms-by-locale-extension` to your dependencies. Also add this repository to your `composer.json`.\n\n\t\"repositories\": [\n        {\n            \"type\": \"vcs\",\n            \"url\": \"git@github.com:webgriffe/cms-by-locale-extension.git\"\n        }\n    ]\n    \nUsage\n-----\n\nYou may extend your Setup class from `Webgriffe_Cms_Model_Entity_Setup` or some config lines in your extension `config.xml`.\n\nIn the first scenario, create a class like\n\n`class Ernani_Cms_Model_Entity_Setup extends Webgriffe_Cms_Model_Entity_Setup\n{ }`\n\nIn the second, add the following lines in `config.xml`:\n\n    \u003cconfig\u003e\n        \u003cglobal\u003e\n            \u003cresources\u003e\n                \u003cYOUR_MODULE_ALIAS_setup\u003e\n                    \u003csetup\u003e\n                        \u003cmodule\u003eYOUR_MODULE_NAME\u003c/module\u003e\n                        \u003cclass\u003eWebgriffe_Cms_Model_Entity_Setup\u003c/class\u003e\n                    \u003c/setup\u003e\n                \u003c/YOUR_MODULE_ALIAS_setup\u003e\n            \u003c/resources\u003e\n        \u003c/global\u003e\n    \u003c/config\u003e\n\n\nThen, in your data scripts, you may call the methods:\n* `$this-\u003egenerateCmsPage($urlKey, $content)`\n* `$this-\u003egenerateStaticBlock($identifier, $content)`\n\nExample\n-------\n\nMagento Stores:\n![image](stores-screenshot.png)\nNote: the store view with code `it_it` has locale `it_IT`, all others are `en_US`\n\ndata-install-1.0.0.php:\n\n    \u003c?php\n    /* @var $installer Webgriffe_Cms_Model_Entity_Setup */\n    $installer = $this;\n\n    $installer-\u003estartSetup();\n\n    $installer-\u003egenerateCmsPage('temporary', 'Temporary content');\n\n    $installer-\u003eendSetup();\n\nCms pages created:\n![image](cmspages-screenshot.png)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwebgriffe%2Fcms-by-locale-extension","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwebgriffe%2Fcms-by-locale-extension","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwebgriffe%2Fcms-by-locale-extension/lists"}