{"id":20816063,"url":"https://github.com/arillo/silverstripe-elements-global","last_synced_at":"2025-09-06T14:47:51.968Z","repository":{"id":21131755,"uuid":"91809090","full_name":"arillo/silverstripe-elements-global","owner":"arillo","description":"Global elements for SilverStripe Elements","archived":false,"fork":false,"pushed_at":"2025-07-17T11:22:12.000Z","size":114,"stargazers_count":2,"open_issues_count":5,"forks_count":1,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-08-20T16:22:25.706Z","etag":null,"topics":["php","silverstripe","silverstripe-elements"],"latest_commit_sha":null,"homepage":"https://arillo.github.io/silverstripe-elements-global/","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/arillo.png","metadata":{"files":{"readme":"Readme.md","changelog":null,"contributing":null,"funding":null,"license":"License.md","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":"2017-05-19T13:32:06.000Z","updated_at":"2022-01-20T09:17:29.000Z","dependencies_parsed_at":"2024-02-15T16:52:35.115Z","dependency_job_id":null,"html_url":"https://github.com/arillo/silverstripe-elements-global","commit_stats":{"total_commits":35,"total_committers":5,"mean_commits":7.0,"dds":"0.34285714285714286","last_synced_commit":"b7a978270316c8d8ea1f94a3960f91f0c66fbd6a"},"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/arillo/silverstripe-elements-global","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arillo%2Fsilverstripe-elements-global","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arillo%2Fsilverstripe-elements-global/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arillo%2Fsilverstripe-elements-global/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arillo%2Fsilverstripe-elements-global/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/arillo","download_url":"https://codeload.github.com/arillo/silverstripe-elements-global/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arillo%2Fsilverstripe-elements-global/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273919792,"owners_count":25191207,"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","status":"online","status_checked_at":"2025-09-06T02:00:13.247Z","response_time":2576,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["php","silverstripe","silverstripe-elements"],"created_at":"2024-11-17T21:27:51.785Z","updated_at":"2025-09-06T14:47:46.945Z","avatar_url":"https://github.com/arillo.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SilverStripe Elements global\n\n[![Latest Stable Version](https://poser.pugx.org/arillo/silverstripe-elements-global/v/stable?format=flat)](https://packagist.org/packages/arillo/silverstripe-elements-global)\n\u0026nbsp;\n[![Total Downloads](https://poser.pugx.org/arillo/silverstripe-elements-global/downloads?format=flat)](https://packagist.org/packages/arillo/silverstripe-elements-global)\n\nElements-global will allow you to define specific elements as being global. Global elements can be added to pages by creating a VirtualElement that will work as a link/placeholder to the global element.\n\nThe elements that should be available globaly should implement the IElementsGlobal interface. When creating this elements via a ModelAdmin they will automatically get the flag Global set to true.\n\n__You need to specify at least one Element that implements the IElementsGlobal interface.__\n\n```php\nclass HeroElement extends ElementBase implements IElementsGlobal\n{\n...\n}\n```\n\nYou can restrict the allowed elements to be referenced by a virtual element on a per pagetype basis on your config.yml via the virtual_elements attribute.\n\n```yml\nHomePage:\n  element_relations:\n    Elements:\n      - HeroElement\n      - DownloadElement\n      - TeaserElement\n      - VirtualElement\n    Sidebar:\n      - HeroElement\n      - VirtualElement\n  virtual_elements:\n    Elements:\n      - HeroElement\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farillo%2Fsilverstripe-elements-global","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Farillo%2Fsilverstripe-elements-global","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farillo%2Fsilverstripe-elements-global/lists"}