Closed (fixed)
Project:
Real Name
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
3 Feb 2012 at 16:40 UTC
Updated:
26 Mar 2012 at 17:00 UTC
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
Comment #1
dave reidI 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.
Comment #3
IWasBornToWin commentedApparently 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.
Comment #4
IWasBornToWin commentedWould 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]
Comment #5
IWasBornToWin commentedAny suggestion?
Comment #6
IWasBornToWin commentedI solved this by using path user/[uid]/contact