Question How can I display a user's first and last name using just the XWiki.username. ie instead of having to John Smith>XWiki.jsmith can I just specify XWiki.jsmith and automatically display the first and last name. user's first name and last name
Answer You can use $xwiki.getUserName("XWiki.TheUser"), which automatically formats the username and also links to his/her profile.

If you don't want to link to the user profile, you can use $xwiki.getUserName("XWiki.TheUser", false).

Version 1.10 last modified by Vincent Massol on 06/03/2007 at 14:38

Comments 0

No comments for this document

Attachments 0

No attachments for this document

Creator: sud on 2006/01/23 18:43
This wiki is licensed under a Creative Commons license
1.3.2.9174