{"id":20499855,"url":"https://github.com/sherlockode/sonataadvancedcontentbundle","last_synced_at":"2025-06-12T13:07:06.049Z","repository":{"id":57049244,"uuid":"141319611","full_name":"sherlockode/SonataAdvancedContentBundle","owner":"sherlockode","description":"Sonata admin integration for SherlockodeAdvancedContentBundle","archived":false,"fork":false,"pushed_at":"2023-11-24T10:24:47.000Z","size":67,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":7,"default_branch":"master","last_synced_at":"2024-03-24T20:43:45.837Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sherlockode.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-07-17T17:04:37.000Z","updated_at":"2024-03-24T20:43:45.838Z","dependencies_parsed_at":"2023-11-14T11:42:16.496Z","dependency_job_id":"5dd8fb7e-a765-4d8f-9275-27151085dcb8","html_url":"https://github.com/sherlockode/SonataAdvancedContentBundle","commit_stats":{"total_commits":36,"total_committers":2,"mean_commits":18.0,"dds":0.5,"last_synced_commit":"a7b5626709a9caf0c1c94ad0f6545acaac1e15ca"},"previous_names":[],"tags_count":14,"template":false,"template_full_name":null,"purl":"pkg:github/sherlockode/SonataAdvancedContentBundle","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sherlockode%2FSonataAdvancedContentBundle","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sherlockode%2FSonataAdvancedContentBundle/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sherlockode%2FSonataAdvancedContentBundle/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sherlockode%2FSonataAdvancedContentBundle/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sherlockode","download_url":"https://codeload.github.com/sherlockode/SonataAdvancedContentBundle/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sherlockode%2FSonataAdvancedContentBundle/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259470941,"owners_count":22862997,"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-11-15T18:18:49.902Z","updated_at":"2025-06-12T13:07:05.992Z","avatar_url":"https://github.com/sherlockode.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"SherlockodeSonataAdvancedContentBundle\n======================================\n\nSonata Admin integration for SherlockodeAdvancedContentBundle\n\n## Installation\n\nThe best way to install this bundle is to rely on [Composer](https://getcomposer.org/):\n\n```bash\n$ composer require sherlockode/sonata-advanced-content-bundle\n```\n\nRegister the bundle in your application's kernel and make sure that this bundle is added\nafter the [AdvancedContentBundle](https://github.com/sherlockode/advanced-content-bundle)\n\n```php\n// config/bundles.php\n\u003c?php\n\nreturn [\n    /* ... */\n    Sherlockode\\AdvancedContentBundle\\SherlockodeAdvancedContentBundle::class =\u003e ['all' =\u003e true],\n    Sherlockode\\SonataAdvancedContentBundle\\SherlockodeSonataAdvancedContentBundle::class =\u003e ['all' =\u003e true],\n];\n```\n\nYou will need to add our specific CSS and JS files to your application via webpack and Sonata configuration.\n\n```js\n// assets/js/app.js\n\n// sherlockode/advanced-content-bundle configuration\nimport '../../vendor/sherlockode/advanced-content-bundle/Resources/public/css/index.scss';\nimport '../../vendor/sherlockode/advanced-content-bundle/Resources/js/index.js';\n\n// font awesome (optional)\nimport '@fortawesome/fontawesome-free/css/fontawesome.css';\nimport '@fortawesome/fontawesome-free/css/solid.css';\n\n// sherlockode/sonata-advanced-content-bundle configuration\nimport '../../vendor/sherlockode/sonata-advanced-content-bundle/Resources/js/acb-sonata.js';\nimport '../../vendor/sherlockode/sonata-advanced-content-bundle/Resources/css/acb-sonata.scss';\n```\n\nYou can then add the following lines to your Sonata configuration:\n\n```yaml\n# config/packages/sonata_admin.yaml\nsonata_admin:\n    assets:\n        extra_javascripts:\n            - bundles/sherlockodeadvancedcontent/js/speakingurl.min.js\n            - build/admin/admin-entry.js # Include here the path to your webpack generated admin js file\n        extra_stylesheets:\n            - build/admin/admin-entry.css # Include here the path to your webpack generated admin css file\n```\n\n## Security\n\nBy default our admins are accessible by ROLE_SUPER_ADMIN. \nTo configure your own role hierarchy, you can use the roles : \n- ROLE_SHERLOCKODE_ADVANCED_CONTENT_ADMIN_CONTENT_[PERMISSION] : access to Contents\n- ROLE_SHERLOCKODE_ADVANCED_CONTENT_ADMIN_PAGE_TYPE_[PERMISSION] : access to Page Types\n- ROLE_SHERLOCKODE_ADVANCED_CONTENT_ADMIN_PAGE_[PERMISSION] : access to Pages\n\nFor example, if you want to grant all permissions for ROLE_ADMIN, you can add : \n```yaml\n# config/packages/security.yaml\nsecurity:\n    role_hierarchy:\n        ROLE_ADMIN:\n            - ROLE_SHERLOCKODE_ADVANCED_CONTENT_ADMIN_CONTENT_ALL\n            - ROLE_SHERLOCKODE_ADVANCED_CONTENT_ADMIN_PAGE_TYPE_ALL\n            - ROLE_SHERLOCKODE_ADVANCED_CONTENT_ADMIN_PAGE_ALL\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsherlockode%2Fsonataadvancedcontentbundle","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsherlockode%2Fsonataadvancedcontentbundle","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsherlockode%2Fsonataadvancedcontentbundle/lists"}