I am currently trying to Filter my userlist #set($users = $xwiki.rightsmanager.usersApi.allUsers) #foreach($user in $users) #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
Hi,
On 29 Apr 2016, at 09:48, Rochlin Oleg <Oleg.Rochlin@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#HGrou... 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
On Fri, Apr 29, 2016 at 10:50 AM, Vincent Massol <vincent@massol.net> wrote:
Hi,
On 29 Apr 2016, at 09:48, Rochlin Oleg <Oleg.Rochlin@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#HGrou...
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@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
participants (3)
-
Eduard Moraru -
Rochlin Oleg -
Vincent Massol