Overview:
The Strapi plugin categorizer v.2 is a plugin that allows users to categorize content quickly. It supports multiple categorizer fields per collection and allows for user-created collections. The plugin’s main feature is the ability to select filtered relations using a categorizer field, which can then be used to build actual relations for the categories field. It is important to note that version 2.0.X of the plugin is an alpha version and is not backward compatible with version 1.
Features:
- Supports multiple categorizer fields per collection
- Supports user-created collections
- Feature: Multiple categorizers on one target - Allows for targeting the same relation field from more than one categorizer. Useful for situations where additional categories are needed, such as Gifts or New.
- Feature: Clear for categorizer dropdown - Provides the ability to clear the categorizer dropdown field.
- Need validation for user entered configuration data - This feature is not currently available and may be added in future updates.
Installation:
To install the Strapi plugin categorizer v.2, please follow the steps below:
- Create your custom collection type called “Category”.
- Add a string field named “name” to the Category collection.
- Add a relation field named “parent” as a “hasOne” relation to the Category collection.
- Switch to the content manager view and add your categories to the Category collection:
- If no parent is assigned, the category is a root category.
- If a category has a parent, it is a subcategory.
- In your target collection, add two fields:
- “categories” - a “hasMany” relation to the Categories collection.
- “categoriesCategorizer” - a categorizer field that will be used to build relations.
- Select “Categories” as the target collection.
- Set the target name to “categories”.
- Set the maxDepth to 4 (optional).
- Once you have set up everything, you should be able to select relations based on your category structure. When you hit “save”, you should see an array of relations in the categories field.
Summary:
The Strapi plugin categorizer v.2 is a useful tool for categorizing content quickly. With its support for multiple categorizer fields per collection and user-created collections, users have the flexibility to organize and manage their content efficiently. The plugin’s key feature is the ability to select filtered relations using a categorizer field, making it easy to build and manage category-based relationships. However, it is important to note that version 2.0.X is an alpha version and may have some limitations and compatibility issues. Users should also be cautious when updating the categories field, as the relations may regenerate from the categorizer each time. Overall, this plugin is a valuable addition for users looking to streamline their content organization process in Strapi.