'Categories and sub categories for Strapi collection

Working with Strapi I have a collection 'Events' that has a category 'Music' and the subcategories 'Jazz', 'Funk', 'Samba'.

How do I create a taxonomy system as WordPress has for its posts in Strapi???



Solution 1:[1]

The feature is still outstanding https://github.com/strapi/strapi/issues/8708

Solution 2:[2]

This seem to work for me at this moment:

Create category

enter image description here

enter image description here

Under "Parent" column there is now dropdown for each sub category

enter image description here

Create new category and select Parent category

enter image description here GraphQL

enter image description here

I used idea from: https://forum.strapi.io/t/how-to-create-nested-categories-in-v4/16416

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Hemant Chawla
Solution 2 atazmin