Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/drupal/3.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 8内容类型层次结构_Drupal_Drupal 8_Drupal Views_Drupal Content Types_Drupal Contextual Filters - Fatal编程技术网

以分类法为父级的Drupal 8内容类型层次结构

以分类法为父级的Drupal 8内容类型层次结构,drupal,drupal-8,drupal-views,drupal-content-types,drupal-contextual-filters,Drupal,Drupal 8,Drupal Views,Drupal Content Types,Drupal Contextual Filters,实现这样的层次结构的最佳方式是什么: Topic (taxonomy term) |___ Subtopic (custom content type) |___ Page (custom content type) |___ Page (custom content type) |___ + N |___ Subtopic (custom content type) |___ Page (custom content ty

实现这样的层次结构的最佳方式是什么:

Topic (taxonomy term)
|___ Subtopic (custom content type)
         |___ Page (custom content type)
         |___ Page (custom content type)
         |___ + N
|___ Subtopic (custom content type)
         |___ Page (custom content type)
         |___ Page (custom content type)
         |___ + N
  • (A) 来自单一词汇的分类术语
    • (B) 父类型为A的某些内容类型
      • (C) 父类型为B的某些内容类型
有从(B)到(A)和从(C)到(B)的参考字段,但没有从(C)到(A)

基本上,我需要实现如下内容:

Topic (taxonomy term)
|___ Subtopic (custom content type)
         |___ Page (custom content type)
         |___ Page (custom content type)
         |___ + N
|___ Subtopic (custom content type)
         |___ Page (custom content type)
         |___ Page (custom content type)
         |___ + N
我尝试在所有的口味中使用实体引用,但没有多大成功。我不知道如何:

  • 当我添加类型(C)的内容时实现路径别名,这样我就有了主机名/(A)/(B)/(C)这样我 不必手动输入url(尝试使用url模式,但无法输入)
  • 创建一个视图,在
    主机名/(a)/(B)/(C)
    url上使用
    上下文过滤器显示属于(C)的内容
非常感谢您的帮助