如何在drupal 7中创建具有分类术语的视图树

时间:2016-10-24 10:27:22

标签: 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 / 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
  

我想按照上述步骤操作,我已经创建了分类术语   父子关系,然后我在这里创建视图   混淆因为他们提到**字段行样式/未格式化列表   字段(现在不能选择树样式很重要)。   然后:

**

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
  

我不知道当我点击提前有分类词时在哪里   没有分类学术语:家长用语请帮我解决这个问题

1 个答案:

答案 0 :(得分:0)

当您点击"提前"在您的视图的页面详细信息中,您拥有"关系"部分:点击"添加"按钮和检查"分类术语:父母术语"。 对于这些领域,你有一个" Fields"部分,还有一个" Add"按钮。

这很简单,一切都在解释,它是一步一步的指示。