【发布时间】:2017-01-05 00:02:56
【问题描述】:
我正在尝试在 Drupal 8 中找到用于 Pathauto 模式的正确标记。
在 Drupal 7 中,我有一个 Pathauto 模块模式,它使用节点的术语和父术语创建 URL 别名。
所以如果节点有一个 Health -> Diet 的 Term 引用。该 URL 将是 health/diet/node-title。
生成这个的模式是[node:field-topic:0:parents:join-path]/[node:field-topic:0]/[node:title]
注意:0 是因为术语引用字段允许多个值。
【问题讨论】:
-
看来这在 Drupal 8 中可能还不存在 drupal.org/node/2821810