If you want a prettier (FirstName LastName) user name you can use
$xwiki.getLocalUserName($context.getUser()).

2007/11/7, Thomas Mortagne <[EMAIL PROTECTED]>:
> Hi,
>
> You can get user name with $context.getLocalUser() or users full name
> with $context.getUser(). Full name means generally containing "XWiki."
> be fore user name, it's the full name of the document containing the
> user.
>
> 2007/11/7, V. Harikrishnan Nair <[EMAIL PROTECTED]>:
> >
> > Hi...
> >
> > I tried use $xwiki.getUser to get the current user's name but I got a value
> > like this '[EMAIL PROTECTED]'.
> > So, I looked into the API doc and used getLocalUser() but it does not work.
> > This is the syntax that I used -
> >
> > #set($user = $xwiki.getLocalUser())
> > $user
> >
> > What is wrong here ? It had given me an output for getUser().
> >
> > Harikrishnan
> >
> > --
> > View this message in context: 
> > http://www.nabble.com/using-getLocalUser%28%29-tf4763863.html#a13624781
> > Sent from the XWiki- Users mailing list archive at Nabble.com.
> >
> > _______________________________________________
> > users mailing list
> > users@xwiki.org
> > http://lists.xwiki.org/mailman/listinfo/users
> >
>
>
> --
> Thomas Mortagne
>


-- 
Thomas Mortagne
_______________________________________________
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users

Reply via email to