Strapi 系列的类别和子类别

发布于 2025-01-16 23:33:50 字数 107 浏览 0 评论 0原文

我与 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

赏烟花じ飞满天 2025-01-23 23:33:50

这似乎现在对我有用:

创建类别

在此处输入图像描述

在此处输入图像描述

在“父级”列下,现在有每个子类别的下拉列表

在此处输入图像描述

创建新类别并选择父类别

“在此处输入图像描述"
GraphQL

enter此处的图像描述

我使用的想法来自:https://forum.strapi.io/t/how-to-create-nested-categories-in-v4/16416

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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文