List Wiki Pages Creators In Current Space Snippet

List all the users that have created at least one page in the current space

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

Example

Page creators in the current space (Snippets)

  • VincentMassol
  • jvdrean
  • GuillaumeLerouge
  • HanspeterKlapf
  • ManuelDuran
*
  • LudovicDubost
  • VincentMassol
  • thomasd
  • melv
  • FriedemannLoew
  • pbas
  • slauriere
  • ThomasMortagne
  • vmassol
  • gleeb
  • sono
  • jvdrean
  • GuillaumeLerouge
  • jvelociter
  • VitantonioMessa
  • slauriere
  • polx
  • Sergiu
  • rrodriguez
  • jurevert
  • dpolistchuck
  • prathap
Version 1.1 last modified by jvdrean on 10/07/2008 at 11:46

Comments 0

No comments for this document

Attachments 0

No attachments for this document

Creator: jvdrean on 2008/07/10 11:44
This wiki is licensed under a Creative Commons license
1.4.1.10194