Changes for page User Directory

Last modified by Thomas Mortagne on 2019/11/04 10:44

From version 4.1
edited by Thomas Mortagne
on 2014/04/24 08:43
Change comment: Install extensoin [org.xwiki.platform:xwiki-platform-user-directory-ui-5.4.4]
To version 6.1
edited by Thomas Mortagne
on 2014/09/22 15:15
Change comment: Install extension [org.xwiki.platform:xwiki-platform-user-directory-ui-6.2]

Summary

Details

Page properties
Content
... ... @@ -9,7 +9,7 @@
9 9  #set ($fakeUser = false)
10 10  ##
11 11  ## Set the fixed columns that we want the user directory to always show.
12 -#set ($columns = ['_avatar', 'doc.fullName'])
12 +#set ($columns = ['_avatar', 'doc.name'])
13 13  ##
14 14  ## The columns that the user directory will default to when no user preferences exist or when the user resets to default.
15 15  #set ($defaultColumns = ['first_name', 'last_name'])
... ... @@ -83,7 +83,7 @@
83 83   {{html clean='false' wiki='true'}}
84 84   <form class='xform half' action="$doc.getURL($xcontext.action, $request.queryString)" method='post'>
85 85   <dl>
86 - <dt class='label'>
86 + <dt>
87 87   <label>{{translation key="xe.userdirectory.customizeAvailableColumnsLabel"/}}</label>
88 88   <span class='xHint'>{{translation key="xe.userdirectory.customizeAvailableColumnsHint"/}}</span>
89 89   </dt>
... ... @@ -150,7 +150,7 @@
150 150   #set ($html = true)
151 151   #set ($sortable = false)
152 152   #set ($link = 'view')
153 - #elseif ($column == 'doc.fullName')
153 + #elseif ($column == 'doc.name')
154 154   #set ($link = 'view')
155 155   #elseif ($classPropertyType.endsWith('ListClass'))
156 156   #set($type = 'list')
... ... @@ -158,6 +158,8 @@
158 158   #set($type = 'number')
159 159   #elseif ($classPropertyType.endsWith('PasswordClass'))
160 160   #set($sortable = false)
161 + #elseif ($classPropertyType.endsWith('TextAreaClass'))
162 + #set($html = true)
161 161   #end
162 162   #set ($columnValue = { 'type' : $type, 'link' : $link, 'html' : $html, 'sortable' : $sortable, 'displayName' : $displayName })
163 163   #set ($discard = $columnsProperties.put($column, $columnValue))