Consortium
Activities
Projects
Forge
Events
Log-in
Register
RecentMembers
Space Menu
Consortium
|
Solutions
|
Middleware
|
Forge
|
MyObjectWeb
|
PDF
|
History
|
More Actions
View
Code
|
XML
|
Help
Documentation
|
XWiki Syntax
|
#set ($sql = ", BaseObject as obj where obj.name=${xwiki.getFullNameSQL()} and obj.className='XWiki.XWikiUsers' order by doc.creationDate desc") <table width="90%" border="0"> <tr> #foreach ($member in $xwiki.searchDocuments($sql,5,0)) <td align="center"> #set($memberdoc = $xwiki.getDocument($member)) #if($memberdoc.isNew()) <br /><br /> [$member] #else #set($cobj = $memberdoc.getObject("XWiki.XWikiUsers",0)) #set($fname = $memberdoc.display("first_name","view",$cobj)) #set($lname = $memberdoc.display("last_name","view",$cobj)) #set($company = $memberdoc.display("company","view",$cobj)) #set($country = $memberdoc.display("country","view",$cobj)) #set($division = $memberdoc.display("division","view",$cobj)) #if($memberdoc.attachmentList.size()>0) #set($last = $memberdoc.attachmentList.size()) #set($last = $last - 1) #set($attach = $memberdoc.attachmentList.get($last)) #set($attachurl = $memberdoc.getAttachmentURL($attach.filename,"download")) #set($attachimg = "<img src='$attachurl' height='50' />") #else #set($attachurl = $memberdoc.getURL("attach")) #set($attachimg = "<br /><a href='$attachurl'>Add a photo</a><br />") #end $!attachimg <br/> [$!fname $!lname>$member] $!division #end </td> #end </tr> </table>