cogList all the users that have created at least one page in the current space
Developed by

Jean-Vincent Drean

Rating
Rate!
0 Votes
LicenseGNU Lesser General Public License 2.1

Description

Code

1.1 Page creators in the current space ($doc.web)

#set($web = $doc.web)
#set($authorslist = $util.getArrayList())
#foreach($page in $xwiki.getSpaceDocsName($web))
  #set($author = $xwiki.getDocument("${web}.${page}").getCreator())
  #if (!$authorslist.contains($author))
    * $xwiki.getLocalUserName($author)
    #set ($discard = $authorslist.add($author))
  #end
#end

Prerequisites & Installation Instructions

Copy the code snippet to a page and save it.

Tags: users
Created by Jean-Vincent Drean on 2008/07/10 11:44
     

Get Connected