Menu path in Pathauto

前端 未结 10 1108
天命终不由人
天命终不由人 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:47

    For anyone who stumbles upon this answer, and wonders how to add this:

    Configuration > Search and Metadata > URL aliases, then create under "Patterns" tab.

    0 讨论(0)
  • 2021-02-01 17:52

    I think it has to be this pattern now:

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

    "path" instead of "alias"

    0 讨论(0)
  • 2021-02-01 17:53

    The pattern that works for me is the following:

    [node:menu-link:parent:url:alias]/[node:menu-link]
    

    I also intalled the Token module like Eaten suggested. Don't know if [node:menu-link:parent:url:alias] is part of core or lives in contrib.

    0 讨论(0)
  • 2021-02-01 17:55
    [node:menu-link:parent:url:path]/[node:title]
    

    If the node is not in the menu, then it does not create an alias. Otherwise this seems to work for n-tier menus.

    0 讨论(0)
提交回复
热议问题