Hi,

On Fri, Jun 4, 2010 at 16:11, Sales, G. (Grant) <[email protected]>wrote:

> $xwiki.user.eamil = current user's email address
> $xwiki.getLocalUserName($doc.author) = Author's First and Last name
> $xwiki.getLocalUserName($doc.creator) = Creator's First and Last name
>
> How would I get the email address for a document author and or the last
> person that modified the document?
>

#set($userDoc = $xwiki.getDocument($doc.author))
#set($userObj = $userDoc.getObject('XWiki.XWikiUser'))
#set($userProp = $userObj.get('email'))
#set($userEmail = $userProp.getValue())

Guillaume

Grant Sales
> Security Operations Analyst
> ING
> 20 Washington Ave South
> Minneapolis, MN 55401
> Tel: 612.342.7889
> Fax: 612.342.3428
> Cell: 320.761.0966
> Email: [email protected]
> www.ing-usa.com
> ING. Your future. Made easier. (r)
>
>
>
> ---------------------------------------------------------
>
> NOTICE: The information contained in this electronic mail message is
> confidential and intended only for certain recipients.  If you are not an
> intended recipient, you are hereby notified that any disclosure,
> reproduction, distribution or other use of this communication and any
> attachments is strictly prohibited.  If you have received this communication
> in error, please notify the sender by reply transmission and delete the
> message without copying or disclosing it.
>
>
> ============================================================================================
> _______________________________________________
> devs mailing list
> [email protected]
> http://lists.xwiki.org/mailman/listinfo/devs
>



-- 
Guillaume Lerouge
Sales - XWiki SAS
Skype: wikibc
Twitter: glerouge
http://guillaumelerouge.com/
_______________________________________________
devs mailing list
[email protected]
http://lists.xwiki.org/mailman/listinfo/devs

Reply via email to