I have a rewritten field in views users/[name]/contact. This fields always outputs users/username/contact but now it outputs users/realname/contact which does't work,ie; mysite.com/users/john%20smith/contact

I'm using path auto and aliais...not sure how I can change this? I realize a token of user:name-raw exists but I cant get that token to load in my view in order to use it.

Comments

dave reid’s picture

Status: Active » Fixed

I would highly suggest you use http://drupal.org/project/subpathauto and not worry about rewriting the link since it would be done automatically for you.

Status: Fixed » Closed (fixed)

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

IWasBornToWin’s picture

Status: Closed (fixed) » Active

Apparently this isn't the solution. I already have sub path installed. Here's the case.

In my real name settings I have real name pattern set to;

[user:field-first-name] [user:field-last-name]

I have a user - James A. Smith. His field settings are first name- James A. Last name - Smith.
When I link to his name anywhere in the site (where username link appears) it links to user/james-smith. So real name module works in all of those instances.

But when I create the link [from the view in my original post], it links to user/James-A,-Smith. This link in on a node to contact the node author.

IWasBornToWin’s picture

Would creating a separate field for user's middle name do the trick? Then In my real name settings I could have real name pattern set to;

[user:field-first-name][user:field-middle-name][user:field-last-name]

IWasBornToWin’s picture

Any suggestion?

IWasBornToWin’s picture

Status: Active » Fixed

I solved this by using path user/[uid]/contact

Status: Fixed » Closed (fixed)

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