Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/wgr-sa/strapi-plugin-collection-tree
Strapi plugin to easily sort your collections
https://github.com/wgr-sa/strapi-plugin-collection-tree
strapi tree-structure typescript
Last synced: about 1 month ago
JSON representation
Strapi plugin to easily sort your collections
- Host: GitHub
- URL: https://github.com/wgr-sa/strapi-plugin-collection-tree
- Owner: WGR-SA
- Created: 2023-07-07T13:38:24.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-11-23T05:29:59.000Z (about 1 month ago)
- Last Synced: 2024-11-23T06:20:43.139Z (about 1 month ago)
- Topics: strapi, tree-structure, typescript
- Language: TypeScript
- Homepage:
- Size: 163 KB
- Stars: 2
- Watchers: 2
- Forks: 1
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Strapi Collection Tree plugin
The Collection Tree Plugin allows for simple sorting of your collections. It incorporates a view that lets you easily drag and drop your items, supporting nested compatibility.
## Installation
Install the plugin by running the following command:
```
npm install @wgr-sa/strapi-plugin-collection-tree
```## Settings
Navigate to the settings page and select the models that you want to incorporate into the tree structure. If necessary, you can modify the names of the tree fields.
## Usage
Go to the Collection Tree page, select the collection you wish to sort, and use drag and drop to arrange items. Remember to save your changes once you're done.## API
You can retrieve sorted elements by adding `sort=lft:ASC` to your query parameters.## License
This plugin is licensed under the MIT License. Refer to the LICENSE file for more information.