{"id":20816072,"url":"https://github.com/arillo/silverstripe-elements-menu","last_synced_at":"2025-10-17T13:36:50.648Z","repository":{"id":62486979,"uuid":"82942505","full_name":"arillo/silverstripe-elements-menu","owner":"arillo","description":null,"archived":false,"fork":false,"pushed_at":"2025-09-15T15:34:35.000Z","size":17,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-09-15T17:37:49.548Z","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":"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}},"created_at":"2017-02-23T15:44:02.000Z","updated_at":"2025-09-15T15:33:51.000Z","dependencies_parsed_at":"2022-11-02T11:01:37.491Z","dependency_job_id":null,"html_url":"https://github.com/arillo/silverstripe-elements-menu","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/arillo/silverstripe-elements-menu","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arillo%2Fsilverstripe-elements-menu","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arillo%2Fsilverstripe-elements-menu/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arillo%2Fsilverstripe-elements-menu/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arillo%2Fsilverstripe-elements-menu/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/arillo","download_url":"https://codeload.github.com/arillo/silverstripe-elements-menu/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arillo%2Fsilverstripe-elements-menu/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279304126,"owners_count":26143997,"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-10-17T02:00:07.504Z","response_time":56,"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":[],"created_at":"2024-11-17T21:27:56.896Z","updated_at":"2025-10-17T13:36:50.423Z","avatar_url":"https://github.com/arillo.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Arillo\\Elements\\Menu\n\n[![Latest Stable Version](https://poser.pugx.org/arillo/silverstripe-elements-menu/v/stable?format=flat)](https://packagist.org/packages/arillo/silverstripe-elements-menu)\n\u0026nbsp;\n[![Total Downloads](https://poser.pugx.org/arillo/silverstripe-elements-menu/downloads?format=flat)](https://packagist.org/packages/arillo/silverstripe-elements-menu)\n\nAdds inpage menus for Arillo\\Elements.\n\n### Requirements\n\nSilverStripe CMS ^4.0\narillo/silverstripe-elements \u003e=2.0.5\n\n## Installation\n\nInstall with composer:\n\n```bash\ncomposer require arillo/silverstripe-elements-menu\n```\n\n## Usage\n\n### PHP\n\n`Arillo\\Elements\\Menu\\ElementBaseExtension` is already added to `Arillo\\Elements\\ElementBase` when this package is installed. You need to use `Arillo\\Elements\\Menu\\ElementsMenu` in your `Page.php` e.g.:\n\n```php\n\u003c?php\n\nuse SilverStripe\\CMS\\Model\\SiteTree;\nuse Arillo\\Elements\\Menu\\ElementsMenu;\n\nclass Page extends SiteTree\n{\n    // optional configure element relation name you want to use as menu.\n    // Default: Elements\n    private static $elements_menu_relationname = '\u003cYOUR_RELATION_NAME\u003e';\n\n    // can be used to deactivate inpage-menus for certain SiteTree subclasses.\n    private static $disable_elements_menu = true;\n\n    // add this\n    use ElementsMenu;\n}\n```\n\n### Templates\n\nYou can use `ElementsMenu.ss` provided by this module:\n\n```\n\u003c% include ElementsMenu %\u003e\n```\n\nor you might to provide your own markup e.g.:\n\n```\n\u003c% if $ElementsMenuItems.Exists %\u003e\n  \u003cul\u003e\n    \u003c% loop $ElementsMenuItems %\u003e\n      \u003cli\u003e\n        \u003ca href=\"#$URLSegment\"\u003e\n          \u003c% if $MenuTitle %\u003e$MenuTitle\u003c% else %\u003e$Title\u003c% end_if %\u003e\n        \u003c/a\u003e\n      \u003c/li\u003e\n    \u003c% end_loop %\u003e\n  \u003c/ul\u003e\n\u003c% end_if %\u003e\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farillo%2Fsilverstripe-elements-menu","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Farillo%2Fsilverstripe-elements-menu","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farillo%2Fsilverstripe-elements-menu/lists"}