Hi, I have a problem with pathauto that hopefully someone could help me out with.

For my site, I have pages, some of these pages will be linked into the menu but some will not. But I have a problem in trying to generate an alias for both. For node path settings, adding [title-raw] for the pattern will generate the title for pages which is what I need, but if my page was added into a menu as a dropdown, it cant show the path in the url. If I change [title-raw] to say [menupath-raw], that will fix that and use the menu path for the URL, but then pages that arent in the menu are stuck with /node/xxx

So I need to be able to create a page that has a URL alias no matter if it is in the menu or not. So if I create a page called "test", it has an alias of /test. If I add it into the menu as a dropdown under a page called "Drupal", the alias with change to /drupal/test.

Any help on how I can achieve this?

Comments

greggles’s picture

Priority: Critical » Normal
Status: Active » Fixed

This is not possible to achieve with Pathauto out of the box.

If you really need this the only solution is to create a custom token that does the right thing.

See #437842: create a token starterkit module and documentation so people know how to use it for details on how to make a token.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.