{"id":18822805,"url":"https://github.com/a2nt/silverstripe-treemultiselect-sortable-field","last_synced_at":"2025-09-02T21:32:58.624Z","repository":{"id":56938894,"uuid":"316720523","full_name":"a2nt/silverstripe-treemultiselect-sortable-field","owner":"a2nt","description":"SilverStipe custom sort field on tree items","archived":false,"fork":false,"pushed_at":"2020-11-28T12:43:30.000Z","size":313,"stargazers_count":0,"open_issues_count":1,"forks_count":3,"subscribers_count":3,"default_branch":"main","last_synced_at":"2024-12-08T08:34:55.269Z","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":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/a2nt.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}},"created_at":"2020-11-28T11:40:13.000Z","updated_at":"2020-11-28T12:43:32.000Z","dependencies_parsed_at":"2022-08-21T06:50:24.865Z","dependency_job_id":null,"html_url":"https://github.com/a2nt/silverstripe-treemultiselect-sortable-field","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/a2nt%2Fsilverstripe-treemultiselect-sortable-field","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/a2nt%2Fsilverstripe-treemultiselect-sortable-field/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/a2nt%2Fsilverstripe-treemultiselect-sortable-field/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/a2nt%2Fsilverstripe-treemultiselect-sortable-field/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/a2nt","download_url":"https://codeload.github.com/a2nt/silverstripe-treemultiselect-sortable-field/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":231810837,"owners_count":18430027,"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-08T00:51:38.561Z","updated_at":"2024-12-30T04:18:07.491Z","avatar_url":"https://github.com/a2nt.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# silverstripe-treemultiselect-sortable-field\n\n# SilverStripe Tree Multi-select sortable field\n\nSilverStipe custom sort field on tree items\n\n## Installation\n\n```\ncomposer require a2nt/silverstripe-treemultiselect-sortable-field\n```\n\n## Usage\n\n- Install the module, run dev/build\n- Add your custom field\n\n```\n private static $many_many = [\n    'FooterNavigation' =\u003e SiteTree::class,\n];\n\nprivate static $many_many_extraFields = [\n    'FooterNavigation' =\u003e [\n        'SortOrder' =\u003e 'Int',\n    ],\n];\n\nTreeMultiselectFieldSortable::create(\n    'SortOrder', // order field name\n    'FooterNavigation', // relation name\n    'Footer Navigation', // field title\n    SiteTree::class // relation objects class name\n)\n```\n\n![alt text](screenshot.png 'Click to an item and move it using arrows at the left and right')\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fa2nt%2Fsilverstripe-treemultiselect-sortable-field","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fa2nt%2Fsilverstripe-treemultiselect-sortable-field","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fa2nt%2Fsilverstripe-treemultiselect-sortable-field/lists"}