Dear all,
I'd like to add to the user directory a field that shows the line manager of
the user.
The line manager himself is also a XWiki user so the presentation should be
like
first_name +" "+ last_name with a hypelink to the profile page.
Now I have problems with the presentation of the line manager.
My approach was:
1) Modify the class XWiki.XWikiUsers:
1.1) Add a field 'superior' of type 'List of Users'
1.2) Modify 'Custom Display' of field 'superior' as following:
{{velocity}}
{{html clean=false}}
$value.get('first_name') $value.get('first_name')
{{/velocity}}}
2) Modify the Selected Columns list for 'User Directory':
first_name last_name superior
With the code above in 1.2, in the User Directory Panel my column 'superior'
is always
<p>$value.get('first_name')
$value.get('first_name')}</p>
When I use in 1.2:
{{velocity}}
$value
{{/velocity}}
I get at least the following output (when superior is 'hkraut')
<p>XWiki.hkraut</p>
Please can somebody tell me, if already point 1.1 was the wrong approach?
Or how can I adapt 1.2 to display the superior properly?
Many thanks,
Hubert
--
View this message in context:
http://xwiki.475771.n2.nabble.com/Display-List-of-Users-Type-in-User-Direct…
Sent from the XWiki- Users mailing list archive at
Nabble.com.