Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kaliop/strapi-plugin-favorite-views
A Strapi plugin for creating 'views' to access specific searches in a defined content type
https://github.com/kaliop/strapi-plugin-favorite-views
Last synced: about 1 month ago
JSON representation
A Strapi plugin for creating 'views' to access specific searches in a defined content type
- Host: GitHub
- URL: https://github.com/kaliop/strapi-plugin-favorite-views
- Owner: kaliop
- License: mit
- Created: 2024-05-23T15:00:58.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2024-07-09T14:31:55.000Z (6 months ago)
- Last Synced: 2024-07-09T19:52:42.678Z (6 months ago)
- Language: JavaScript
- Size: 680 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Favorite views for Strapi
![tests badge](https://github.com/kaliop/strapi-plugin-favorite-views/actions/workflows/test.yml/badge.svg?branch=main)
This package lets you create "favorite views" to simplify access to specific searches within a defined content type.
Make your searches easier by creating links to customized views in your Strapi interface.## Getting started
### Installation
```bash
npm install strapi-plugin-favorite-views
```Then, enable the plugin in strapi:
```js
// config/plugins.jsmodule.exports = () => ({
'favorite-views': {
enabled: true
}
// .. other plugins
});
```## Configure
This plugin injects a widget component into the content-manager:
![Strapi content manager injection zone](./docs/images/doc-injection-zone-cm.png)
You can inject the widget component to any additional plugin injection zone using the `STRAPI_ADMIN_FAVORITE_VIEWS_INJECT_TO` environment variable.
The variable contains a comma separated list of zones to inject, in the following syntax:
`plugin::..`
Example:
```
STRAPI_ADMIN_FAVORITE_VIEWS_INJECT_TO=plugin::opensearch.globalSearch.listView,plugin::another-plugin.container.block
```## How to use
This plugin lets you create views to directly access your favorite filter selection in the content type of your choice.
Install the plugin and once you've selected your filters, click on "create new view" and you now have it on `My private view` widget.
You can also share your views with specific roles.