Drupal 7:Pathauto patterns from menu structure hierarchy

前端 未结 5 573
囚心锁ツ
囚心锁ツ 2021-02-10 03:15

I\'m trying to create a Pathauto pattern which looks like \"Drupal root/parent_menu_item_name/node_title\" where \"node_title\" is a child of \"parent_menu_item_name\" in the me

5条回答
  •  闹比i
    闹比i (楼主)
    2021-02-10 03:19

    This token uses the menu titles of each parent item to build a url:

    [node:menu-link:parents:join-path]/[node:title]
    

    So if you have nested content titled: The Future -> Doc Brown -> Flux Capacitor

    The above token will print out:

    /the-future/doc-brown/flux-capacitor

提交回复
热议问题