Menu path in Pathauto

前端 未结 10 1112
天命终不由人
天命终不由人 2021-02-01 17:31

How do I get pathauto under Drupal 7 to generate a URL alias by the full menu path?

10条回答
  •  南方客
    南方客 (楼主)
    2021-02-01 17:35

    You'll need to install the contrib Token module as well -- although a lot of the features of Token are part of core in D7, some of the edge case tokens (like the full menu path of a given node) aren't provided by core automatically.

    With that installed, I believe that [node:menu-link:parent] or [node:menu-link:parent:url] should work.

提交回复
热议问题