【问题标题】:how to create a views tree with taxonomy term in drupal 7如何在drupal 7中创建带有分类术语的视图树
【发布时间】:2016-10-24 10:27:22
【问题描述】:

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

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

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

**

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

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

【问题讨论】:

    标签: drupal-7 treeview views


    【解决方案1】:

    当您在视图的页面详细信息中单击“高级”时,您会看到“关系”部分:单击“添加”按钮并选中“分类术语:父术语”。 对于字段,您有一个“字段”部分,还有一个“添加”按钮。

    这很简单,一切都解释清楚了,这是一步一步的说明。

    【讨论】:

    • 没有分类术语。我应该分享我的屏幕截图吗?
    • 1/ 确保您的分类模块能够运行。 2/ 创建视图时,必须在保存和编辑之前更改内容类型:显示类型为“All”的“Taxonomy term”,按“Unsorted”排序如果您没有正确创建,您将没有分类术语在您的视图搜索中。
    • 让我知道为此我还需要创建分类术语吗?
    • 嗯,至少有一个词汇和几个术语。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-03-21
    • 1970-01-01
    相关资源
    最近更新 更多