Thanks for the info, updated version of the script looks like this
{{velocity}}
#macro(displayFullNameByLogin $login)
    #set($userDocName = "XWiki."+$login)
    {{html}}$xwiki.getUserName($userDocName, true){{/html}}
#end
{{/velocity}}

usage is the same (works as it meant to work: displays Full Name with URL to
user's profile if user exists and login otherwise).
-- 
View this message in context: 
http://n2.nabble.com/Code-snippet-Full-user-name-and-link-by-log-in-tp4838148p4841537.html
Sent from the XWiki- Users mailing list archive at Nabble.com.
_______________________________________________
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users

Reply via email to