Changes for page User Directory

Last modified by Thomas Mortagne on 2017/11/21 12:39

From version 4.1
edited by Admin
on 2012/08/17 12:45
Change comment: Импортировано из XAR
To version 5.1
edited by Eugen Colesnicov
on 2013/03/20 12:38
Change comment: Импортировано из XAR

Summary

Details

Page properties
Author
... ... @@ -1,1 +1,1 @@
1 -xwiki:XWiki.Admin
1 +xwiki:XWiki.ecolesnicov
Content
... ... @@ -5,6 +5,9 @@
5 5  #set ($directoryPreferencesClassReference = $services.model.createDocumentReference($xcontext.database, 'XWiki', 'UserDirectoryPreferencesClass'))
6 6  #set ($directoryPreferencesClassName = $services.model.serialize($directoryPreferencesClassReference))
7 7  ##
8 +## Fake user used in some cases to properly display class properties
9 +#set ($fakeUser = false)
10 +##
8 8  ## Set the fixed columns that we want the user directory to always show.
9 9  #set ($columns = ['_avatar', 'doc.fullName'])
10 10  ##
... ... @@ -173,4 +173,9 @@
173 173   'rowCount': 10
174 174  })
175 175  #livetable('userdirectory' $columns $columnsProperties $options)
179 +##
180 +## Clean up any existing fake user from the current in-memory document to avoid side-effects
181 +#if ($fakeUser)
182 + #set ($discard = $doc.removeObject($fakeUser))
183 +#end
176 176  {{/velocity}}
XWiki.UIExtensionClass[0]
Extension Point ID
... ... @@ -1,0 +1,1 @@
1 +org.xwiki.platform.panels.Applications
Extension ID
... ... @@ -1,0 +1,1 @@
1 +platform.panels.userDirectoryApplication
Extension Parameters
... ... @@ -1,0 +1,3 @@
1 +label=$msg.get('xe.panels.quicklinks.userdirectory')
2 +target=Main.UserDirectory
3 +icon=icon:group