Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/date/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Drupal 7 如何在Drupal7中创建带有分类术语的视图树_Drupal 7_Treeview_Views - Fatal编程技术网

Drupal 7 如何在Drupal7中创建带有分类术语的视图树

Drupal 7 如何在Drupal7中创建带有分类术语的视图树,drupal-7,treeview,views,Drupal 7,Treeview,Views,我知道这些步骤,但我被卡住了,因为我不知道下面说明中使用的术语的含义 Views Tree with Taxonomy Terms Creating Taxonomy Terms Create some Taxonomy terms with parent/child (hierarchical) relationships. Creating the View First, create a new term view using the fields row style / unform

我知道这些步骤,但我被卡住了,因为我不知道下面说明中使用的术语的含义

Views Tree with Taxonomy Terms
Creating Taxonomy Terms

Create some Taxonomy terms with parent/child (hierarchical) relationships.
Creating the View

First, create a new term view using the fields row style / unformatted list of fields (it is important that the tree style not be chosen now). Then:

    Add relationship for taxonomy term: parent term
    Add field term id (do not use relationship) and exclude it from display
    Add field term id with relationship, exclude from display
    Add any fields you want to display, like term name, term description, etc...
    Change style / format plugin to Tree (Adjacency model)
    Set Main field to Term ID
    Set Parent field to Term ID with parent relationship
我想按照上面的步骤,我已经用 父子关系,然后我在这里创建我得到的视图 混淆,因为他们提到**字段行样式/未格式化列表 字段(现在不要选择树样式,这一点很重要)。 然后:

**

当我点击advance时,我不知道分类学术语在哪里 无分类学术语:父术语请帮我解决这个问题

当您在视图的页面详细信息中单击“advance”时,您就有了“Relationship”部分:单击“Add”按钮并选中“Taxonomy term:Parent term”。 对于字段,您有一个“字段”部分,还有一个“添加”按钮


这很简单,每件事都有解释,只是一步一步的说明。

没有分类术语。我应该分享我的屏幕截图吗?1/确保您的分类模块能够。2/创建视图时,必须在保存和编辑之前更改内容类型:显示“所有”类型的“分类术语”,按“未排序”排序。如果创建不正确,视图搜索中将不会有分类术语。请告知我,我还需要创建分类术语?至少一个词汇表和两个术语。
Views Tree with Taxonomy Terms
Creating Taxonomy Terms

Create some Taxonomy terms with parent/child (hierarchical) relationships.
Creating the View

First, create a new term view using the fields row style / unformatted list of fields (it is important that the tree style not be chosen now). Then:

    Add relationship for taxonomy term: parent term
    Add field term id (do not use relationship) and exclude it from display
    Add field term id with relationship, exclude from display
    Add any fields you want to display, like term name, term description, etc...
    Change style / format plugin to Tree (Adjacency model)
    Set Main field to Term ID
    Set Parent field to Term ID with parent relationship