Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Please tell me if this is possible to have a tokenized links. Say, user/[uid]/edit. If not how do I hack primary links to support wilcards. Thanks.
Comments
Comment #1
gregglesIn what context do you want these links?
http://drupal.org/project/tokenize provides this in some area.
Comment #2
gausarts CreditAttribution: gausarts commentedActually I want "Edit" which is available as a tab in user-profile page placed into primary links, or to behave as a menu item along with "My Account" that has been easily moved from Navigation menu. But drupal menus administration doesn't seem to allow us to make a path such as: user/$uid/edit directly.
And Tokenize isn't ported to drupal 6 yet. I can create a custom block for this, but I hope a better solution through the menu system. That's why I asked if this is possible for token to provide a replacement for $uid or wildcards in menu paths. Any hint? Thanks
Comment #3
gregglesProviding token support in menu system is pretty far outside the realm of what the token API module should be doing.
Tokenize relies on cck and I think it doesn't make sense to try to upgrade it to 6.x until cck is very stable (which is basically here...).
The other solution to this problem is to use something like the me aliases module: http://drupal.org/project/me
Comment #4
unc0nnected CreditAttribution: unc0nnected commentedFor Future googlers, the menu token module does the trick
http://drupal.org/project/menu_token