我正在尝试创建一个看起来像“Drupal root/parent_menu_item_name/node_title”的Pathauto模式,其中“node_title”是菜单层次结构中“parent_menu_item_name”的子级。

我尝试了许多不同的变体,但没有任何效果。我已经尝试了Menu path in Pathauto中的建议,但都没有用。它只是最终输出了节点标题,之前没有任何内容。

我已经安装了Token和Pathauto模块的最新版本。

最佳答案

我相信Kenan已经回答了这个问题:

Kenan's answer

[node:menu-link:parent:url:path]/[node:title]

它对我有用,所以我很高兴!

关于Drupal 7 :Pathauto patterns from menu structure hierarchy,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/7874777/

10-09 15:27