On Fri, Apr 29, 2016 at 10:50 AM, Vincent Massol <vincent(a)massol.net> wrote:
Hi,
On 29 Apr 2016, at 09:48, Rochlin Oleg
<Oleg.Rochlin(a)ssi-schaefer.com>
wrote:
I am currently trying to Filter my userlist
#set($users = $xwiki.rightsmanager.usersApi.allUsers)
#foreach($user in $users)
This is not going to be performant. You should instead use:
http://www.xwiki.org/xwiki/bin/view/ReleaseNotes/ReleaseNotesXWiki70M2#HGro…
We need a solution for this in Velocity as well.
Thanks,
Eduard
Thanks
-Vincent
#if(($xwiki.getUser($user).isUserInGroup("XWiki.GroupName"))&&
$xwiki.getUser($user).position !="StringExample")
{{section justify="true"}}
It should show me all users except of those with String I defined in if
within
position section.
sadly the second part of IF is being ignored.
Users with String are
still shown.
Thanks =)
Oli
_______________________________________________
users mailing list
users(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/users