| 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 ? |
| 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.7 last modified by Vincent Massol on 14/05/2007 at 19:45
Document data
Attachments:
No attachments for this document
Comments: 0