简体   繁体   English

Drupal 7获取视图中的分类术语列表

[英]Drupal 7 get a list of taxonomy terms in views

在视图(Drupal 7)中,如何从我的分类列表中生成一个名为tag的术语列表?

It's not clear from your question if you just want Views to display all the terms in the Tags vocabulary or if you are asking about generating a list of tags used to categorize content (for the latter, it would be a "Show content of type x" (ie "Node view"). 从你的问题中不清楚你是否只想让Views显示Tags词汇表中的所有术语,或者你是否要求生成用于对内容进行分类的标签列表(对于后者,它将是“显示x类型的内容” “(即”节点视图“)。

If all you want is to show all the tags in your Tags vocabulary, you create a View to "Show Taxonomy terms of type Tag". 如果您只想显示“标记”词汇表中的所有标记,则可以创建“显示类型标记的分类标准术语”的视图。 You'll find options to create page or block displays. 您将找到创建页面或块显示的选项。 There are several "Display format" options: 有几种“显示格式”选项:

  • Grid
  • HTML List HTML列表
  • Jump Menu 跳转菜单
  • Table
  • Unformatted list 未格式化的列表

If you click on "Continue and edit", you'll find that, by default, the terms in the list are links. 如果单击“继续并编辑”,您会发现默认情况下,列表中的术语是链接。 Clicking them takes you to a display of "teasers" for any content tagged with the term. 单击它们可以显示标记有该术语的任何内容的“teasers”。 You can adjust the sort order, add filtering, etc, and continue to tweak your displays. 您可以调整排序顺序,添加过滤等,然后继续调整显示。

Here is a screenshot of the initial step for creating a View of Taxonomy terms: 以下是创建分类视图术语的初始步骤的屏幕截图: 在此输入图像描述

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM