尝试在视图中使用分类层次结构来创建基于类别的菜单

发布于 2024-12-23 02:26:33 字数 230 浏览 4 评论 0原文

我原以为这会非常简单,但事实证明这似乎是不可能的。

我想要做什么,使用视图创建以下输出:

顶级分类术语 1

顶级分类术语 2 儿童学期 1 子术语 2

顶级分类术语 3

顶级分类术语 4 子术语 1

现在,我只是获得所有术语的列表,没有任何区分子术语的内容。即使只是某种方式将某些内容标识为子术语,这样我就可以使用 CSS 使其显示方式与父术语不同。

I expected this to be super simple, but it's turning out to be seemingly and inexplicably impossible.

What I'm trying to do, using views I want to create the following output:

Top Level Taxonomy Term 1

Top Level Taxonomy Term 2
child term 1
child term 2

Top Level Taxonomy Term 3

Top Level Taxonomy Term 4
child term 1

Right now I'm just getting a list of all terms, with nothing differentiating child terms. Even just some way to identify something as a child term so I can use CSS to make it display differently than parent terms.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文