Alternative RealName token specifically for Pathauto

erikwebb - May 18, 2009 - 18:40
Project:RealName
Version:6.x-1.x-dev
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:needs work
Issue tags:pathauto, token
Description

I would like to have the functionality to create an additional token to be used within URL aliases. Possibly a [realname-alt] token. I am working on creating this functionality, but it's a hack in my case and maybe there's something more elegant in the pipeline.

My exact situation is that I am working on a rewrite of a university web site where faculty are some of our users. They would like, wherever possible, for their name to show up as "Dr. [first] [middle_initial] [last]". This is perfectly implemented with RealName for the site. Unfortunately, they are not interested in using this full name for their URL alias (people/[first]_[last]).

Thank you,
Erik

#1

erikwebb - May 19, 2009 - 13:32

I've added the alternative token [realname-alt] and it is working in my case. It's not efficient because it always pulls the [realname-alt] token from the database instead of the static cache (too much work to change the cache). It works though, so maybe this will help someone else.

Erik

AttachmentSize
realname-add-alternative.patch 7.57 KB

#2

erikwebb - August 3, 2009 - 14:28
Status:active» needs review

#3

NancyDru - October 8, 2009 - 19:48
Status:needs review» needs work

Could you check over #332669: Check box to use an alternate real name and #356893: Possibility to have different RealName rules when using ProfileContent and see if this patch might also resolve those issues, please? I would also really like to see it use the table or some sort of caching if possible.

 
 

Drupal is a registered trademark of Dries Buytaert.