{"id":23369835,"url":"https://github.com/chaplean/cms-bundle","last_synced_at":"2025-04-07T23:45:20.331Z","repository":{"id":62501055,"uuid":"196139874","full_name":"chaplean/cms-bundle","owner":"chaplean","description":null,"archived":false,"fork":false,"pushed_at":"2022-09-30T19:42:07.000Z","size":7605,"stargazers_count":0,"open_issues_count":5,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-14T01:17:36.381Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/chaplean.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":"2019-07-10T05:51:29.000Z","updated_at":"2019-07-10T06:08:35.000Z","dependencies_parsed_at":"2022-11-02T10:00:59.123Z","dependency_job_id":null,"html_url":"https://github.com/chaplean/cms-bundle","commit_stats":null,"previous_names":[],"tags_count":62,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chaplean%2Fcms-bundle","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chaplean%2Fcms-bundle/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chaplean%2Fcms-bundle/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chaplean%2Fcms-bundle/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chaplean","download_url":"https://codeload.github.com/chaplean/cms-bundle/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247749966,"owners_count":20989712,"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":"2024-12-21T15:18:14.018Z","updated_at":"2025-04-07T23:45:20.312Z","avatar_url":"https://github.com/chaplean.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"Getting Started With ChapleanCmsBundle\n=======================================\n\n# Prerequisites\n\nThis version of the bundle requires Symfony 2.8+.\n\n### Installation\n\nInclude ChapleanCmsBundle in `composer.json`\n\n``` json\ncomposer require chaplean/cms-bundle\n```\n\nAdd bundle in `AppKernel.php`\n\n```php\n\u003c?php\n    //...\n    public function registerBundles()\n    {\n        return array (\n            //...\n            new Chaplean\\Bundle\\CmsBundle\\ChapleanCmsBundle(),\n        );\n    }\n```\n\n### Step:\n\n###### Add configuration in config.yml\n\n```yaml\nchaplean_cms:\n    modules:\n        block: boolean|array # Required, action available: ['add', 'remove']\n        page: boolean|array # Required, action available: ['add', 'remove']\n        post:\n            category: boolean|array # Required, type available ['news', 'testimonial', 'video', 'zoom']\n            action: boolean|array # Required, action available: ['add', 'duplicate', 'remove']\n        media: boolean # Required\n    template:\n        back_layout: # Optional (default: 'ChapleanCmsBundle::layout-backoffice.html.twig'), for override default back layout (add a menu in sidebar for example)\n        front_layout: # Required view extended by page/post view (example: 'ChapleanCmsBundle::layout-frontoffice.html.twig')\n        front_route: # Optional (default: 'app_front'), route name for return to main site\n        back_landing_route: # Optional (default: 'cms_back_home'), landing page to redirect to when requesting the backoffice without specific page\n        logo_path: # Optional (default: ''), path of logo top left\n        page_index: # Optional (default: 'ChapleanCmsBundle:Front/Page:index.html.twig'), Custom frontend page list\n        page_view: # Optional (default: 'ChapleanCmsBundle:Front/Page:view.html.twig'), Custom frontend page\n        post_index: # Optional (default: 'ChapleanCmsBundle:Front/Post:index.html.twig'), Custom frontend post list\n        post_view: # Optional (default: 'ChapleanCmsBundle:Front/Post:view.html.twig'), Custom frontend post\n```\n\n[Notice]: `front_layout` must contain a block twig named `content` else see `page_index`, `page_view`, `post_index`, `post_view` if you want override default view for these modules.\n\n###### Add ChapleanCmsBundle for doctrine\n```yaml\ndoctrine:\n    orm:\n        #...\n        entity_managers:\n            app:\n                mappings:\n                    mappings:\n                        #...\n                        ChapleanCmsBundle: ~\n```\n\n###### Add ChapleanCmsBundle for assetic\n```yaml\nassetic:\n    #...\n    bundles: ['ChapleanCmsBundle']\n```\n\n###### Add route in routing.yml\n```yaml\nchaplean_cms:\n    resource: \"@ChapleanCmsBundle/Resources/config/routing.yml\"\n\nchaplean_cms_rest:\n    type: rest\n    resource: \"@ChapleanCmsBundle/Resources/config/routing_rest.yml\"\n    prefix:   /rest/\n```\n\n##### Add migration\n```php\n\u003c?php\n\n// Add this in migration\n\n/** @var Kernel $kernel */\n$kernel = $this-\u003econtainer-\u003eget('kernel');\n$application = new Application($kernel);\n$application-\u003esetAutoExit(false);\n\n$options = array('command' =\u003e 'doctrine:fixtures:load', '--fixtures' =\u003e 'vendor/chaplean/cms-bundle/Chaplean/Bundle/CmsBundle/DataFixtures/ORM', '--append' =\u003e true);\n$application-\u003erun(new ArrayInput($options));\n\n```\n\n##### Build translations\n```shell\nphp bin/console bazinga:js-translation:dump\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchaplean%2Fcms-bundle","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchaplean%2Fcms-bundle","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchaplean%2Fcms-bundle/lists"}