分类术语的主题顺序(Theming order by taxonomy term)

编程入门 行业动态 更新时间:2024-10-24 19:20:27
分类术语的主题顺序(Theming order by taxonomy term)

我有一个视图,从某种类型获取所有节点,并在页面上显示它们; 每个节点都按分类术语分类。 我创建了一个自定义.template文件来使用行样式来主题化视图,但我真正想要做的是将所有节点排序在一个类别下,例如:

第1类

节点1 节点7 节点15

第2类

节点2 节点6

我该怎么做呢?

I have a view that gets all the nodes from a certain type and shows them on a page; every node is categorized by a taxonomy term. I created a custom .template file to theme the view using the row style, but what I really would like to do is order all the nodes under a category, for example:

category 1

node 1 node 7 node 15

category 2

node 2 node 6

How do I do this?

最满意答案

请注意下面描述的步骤适用于D6: 使用drupal视图模块创建ur视图 选择适当的字段, 在过滤器字段下,选择分类,然后选择适当的分类术语 选择适当的字段(您要显示的字段)。 将输出样式更改为表或您喜欢的任何内容 你有它

希望能帮助到你。

Please note steps describe below are for D6: Create u r view using drupal views module Select the appropriate fields, under filter field, Select the taxonomy , and select appropriate taxonomy term Select the appropriate fields (which you will like to display). change the output style to table or whatever you prefer and there you have it

Hope it helps.

更多推荐

本文发布于:2023-08-05 17:48:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1437471.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:术语   顺序   主题   Theming   taxonomy

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!