4

For example, the URL http://example.com/user/20/edit/cocktail?destination=user%2F20 leads to a page with the form to add content.

I want to create an alias like bartender/add/cocktail, or (if possible) bartender/profile/[current-loggedin-bartender-name], [current-loggedin-bartender-surname]/add/cocktail.

Is this possible? How can I do it?

3
  • Pathauto module might help you for your requirements... Check it. Commented Apr 25, 2011 at 13:04
  • Thanks. I use pathauto but I have no idea how to use this module to create those kinds of aliases
    – user1077
    Commented Apr 25, 2011 at 13:26
  • You can have a look in this video.. (youtube.com/watch?v=mDx3ruLg1OQ) Commented Mar 26, 2012 at 13:54

2 Answers 2

1

Those kinds of aliases cannot be implemented by the Pathauto module because it is difficult to add tokens into the menu settings. To help with this in the past, I used the me aliases module.

Provides shortcut paths to current user's pages, eg user/me, blog/me, user/me/edit, tracker/me etc.

It has a Drupal 7 release which has been released on June 8, 2019. There is an issue open to port the module to Drupal 8/9: Port Me module to Drupal 8 / 9.

0

Menu tokens is another option that looks a bit more robust than me aliases but they both now have token replacements and it is still in alpha3 as of now.

Menu Token module

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.