Count contributors

Last modified by Vincent Massol on 2021/03/18 11:28

cogList and count contributors to the wiki
Type
Category
Developed by

Vincent Massol

Rating
0 Votes
LicenseGNU Lesser General Public License 2.1

Table of contents

Description

List and count all users who have made changes to pages in the wiki during the past 3 months, excluding changes to the XWiki space (since new registered users have their profile pages created there under their name, even if they haven't contributed anything).

{{velocity}}
#set ($dateLong = $datetool.getSystemTime() - 3 * 30 * 24 * 60 * 60 * 1000)
#set ($xwql = "select distinct doc.author from Document doc where doc.space <> 'XWiki' and doc.date >= :date")
#set ($items = $services.query.xwql($xwql).bindValue('date', $datetool.toDate($dateLong)).execute())
Number of contributors on the past 3 months: $items.size()

#foreach ($item in $items)
 * $item
#end
{{/velocity}}
Tags:
     

Get Connected