Strapi 系列的类别和子类别
我与 Strapi 合作创建了一个“活动”集合,其中包含“音乐”类别和“爵士乐”、“放克”、“桑巴”子类别。
如何为 Strapi 中的帖子创建 WordPress 那样的分类系统???
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???
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
这似乎现在对我有用:
创建类别
在“父级”列下,现在有每个子类别的下拉列表
创建新类别并选择父类别
GraphQL
我使用的想法来自:https://forum.strapi.io/t/how-to-create-nested-categories-in-v4/16416
This seem to work for me at this moment:
Create category
Under "Parent" column there is now dropdown for each sub category
Create new category and select Parent category
GraphQL
I used idea from: https://forum.strapi.io/t/how-to-create-nested-categories-in-v4/16416
该功能仍然很出色 https://github.com/strapi/strapi/issues/8708
The feature is still outstanding https://github.com/strapi/strapi/issues/8708