@cslegany/filter-button-strapi5
v0.5.5
Published
This package provides a custom field for Strapi 5 that lets you add a filter button in no time.
Downloads
150
Readme
filter-button
This package provides a custom field for Strapi 5 that lets you add a filter button in no time.
Inspired by the Filter Button Strapi 4 plugin.
Installation
NPM:
npm install @cslegany/filter-button-strapi5
Yarn:
yarn add @cslegany/filter-button-strapi5
Usage
- Install and configure the plugin. If you have Articles and Categories relations, you can use it to have a 'View Articles' button in the Edit View of a Category.
- If you click on this button, it will show all Articles belonging to that Category using Strapi's Content Manager.
- Multi-to-Multi relations are also supported. Let's say that you have a Labels relation and each Article can have multiple Labels. In that case you have to set Multi-to-Multi in the configuration of this plugin.
- This plugin has a GUI to configure relations which was a missing feature in the Strapi 4 version.
- Don't forget to add the Custom Fields in Strapi to your relations (i.e. a viewArticles custom field to Categories).
License
MIT