以分类法为父级的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的某些内容类型
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模式,但无法输入)
- 创建一个视图,在
url上使用主机名/(a)/(B)/(C)
上下文过滤器显示属于(C)的内容