@wgr-sa/strapi-plugin-collection-tree
v0.3.4
Published
Strapi plugin to easily sort your collections
Downloads
73
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.