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

Jean-Vincent Drean

Rating
0 Votes
LicenseGNU Lesser General Public License 2.1

Table of contents

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
Tags: users
     

Get Connected