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.
I would love it if someone could explain how to add user group or user type into the path. I see user-raw but nothing for user type or group.
Ideally I want:
usertype/user-name as the path but so far I can only set-a-word/user-name
Hope this is possible. It would make life on my site so much nicer. :)
Thanks
Jaks
Comments
Comment #1
gregglesWhat is a "usertype" ?
Do you mean a role?
Comment #2
jaks1970 CreditAttribution: jaks1970 commentedYes. I was referring to roles. Sorry about my terminology. Spent a lot of time using VBulletin. lol
So is it possible?
Thanks
Jaks
Comment #3
jaks1970 CreditAttribution: jaks1970 commentedComment #4
gregglesNot yet - #162502: Token for user roles
Comment #5
jaks1970 CreditAttribution: jaks1970 commentedWell that's disappointing. :( Thanks for taking the time to respond though, it is appreciated.
I tried the code in the post you linked to. The best I could get was to show the role ID for secondary roles (roles I created). It's not bad but if I could somehow rewrite the role id using a URL-Alias it would be perfect.
I really don't see why a user would need to be assigned to multiple roles. Wouldn't that eliminate the need for extra coding if users were only allowed one role at a time? Am I missing something here? What instances would a user need a multiple role?
For my needs I'm simply wanting to assign roles to artists contributors and regular members. That way when someone looks at their profile it shows in the URL which role they are.
Thanks
Jaks