Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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.