Show last authors
1 {{velocity}}
2 #set ($sql = ", BaseObject as obj where obj.name=doc.fullName and obj.className='XWiki.XWikiUsers' order by doc.creationDate desc")
3 (% class="memberlist" %)
4 (((
5 #foreach ($member in $xwiki.searchDocuments($sql,5,0))
6 #set($discard = $map.clear())
7 #set($memberdoc = $xwiki.getDocument($member))
8 #set($memberobj = $memberdoc.getObject("XWiki.XWikiUsers"))
9 #set($company = $memberdoc.display("company","view",$memberobj))
10 (% class="vcard" %)
11 (((
12 #if($memberobj.avatar && $memberobj.avatar.trim() != "")
13 [[[[image:${memberdoc.fullName}@${memberobj.avatar}||alt="$xwiki.getUserName($member, false)" width="48" class="photo"]]>>$memberdoc.fullName]]
14 #else
15 ## Note that as soon as skin files can be displayed with [[image:]] this should be changed
16 {{html}}
17 <img src="$xwiki.getSkinFile("noavatar.png")" alt="" width="48" class="nophoto"/>
18 {{/html}}
19 #end
20 ==== [[$xwiki.getUserName($member, false)>>$memberdoc.fullName||class="url fn"]] ====
21 #set($prev = false)
22 #if($company && !$company.trim().equals(""))${company}#set($prev = true)#end
23 )))
24 #end
25 )))
26 {{/velocity}}