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

greggles’s picture

Status: Active » Postponed (maintainer needs more info)

What is a "usertype" ?

Do you mean a role?

jaks1970’s picture

Yes. I was referring to roles. Sorry about my terminology. Spent a lot of time using VBulletin. lol

So is it possible?

Thanks
Jaks

jaks1970’s picture

Title: Usergroup as part of the URL » User Role as part of the URL
greggles’s picture

Project: Pathauto » Token
Version: 5.x-2.x-dev » 5.x-1.x-dev
Status: Postponed (maintainer needs more info) » Closed (duplicate)
jaks1970’s picture

Well 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