I'm working on D7 Submitted By module and found that there is no way to have a $submitted with a linked user name, like we normally have for content and comment.
Suggesting adding a fully themed username, [user:name_themed] via theme('username')
| Comment | File | Size | Author |
|---|---|---|---|
| #8 | name_themed_token-1176592-8.patch | 965 bytes | mrfelton |
| #4 | name_themed_token-1176592-4.patch | 925 bytes | ckng |
| #1 | name_themed_token-1176592-1.patch | 914 bytes | ckng |
Comments
Comment #1
ckngComment #2
dave reidI'm not sure the token name is the best. [user:link]? [user:link-themed]?
I'm wondering if something like this as the submitted by pattern/variable doesn't already fit your use case?
Comment #3
ckngIt doesn't. This will provide a user link to everyone regardless of if they have permission to 'View user profiles'.
[user:link] looks fine. So how about
Comment #4
ckngComment #5
ckngUpdate the title to reflect the new token name
Comment #6
casey commentedckng has a valid point in #3
Regarding the token name, maybe we could map it under [user:name] as [user:name:link]?
Comment #7
mrfelton commentedPatch in 4 works well. Thanks.
Comment #8
mrfelton commentedUpdated patch to apply cleanly with drush make
Comment #9
mstef commentedWhat about node:author or node:author:name?
And would this be a dupe of #698242: User name tokens should use theme('username')?
Comment #10
rootworkSo did this ever happen? I just ran into this issue, where I wanted to output a linked username (in this case a node author, so I agree that should be part of this too) and had to cumbersomely create a link using the tokens for the path and the username. It seems like a pretty clear use-case.