Re: [xwiki-users] Display users that are not hidden

2016-04-07 Thread Thomas Mortagne
On Thu, Apr 7, 2016 at 2:16 PM, Mark Sack wrote: > Thanks for the pointer. The filter is a big improvement on what I had before. > However, it only excludes hidden users if the logged in user has not chosen > to display hidden documents. For this particular case, it would be > preferable to always

Re: [xwiki-users] Display users that are not hidden

2016-04-07 Thread Mark Sack
Thanks for the pointer. The filter is a big improvement on what I had before. However, it only excludes hidden users if the logged in user has not chosen to display hidden documents. For this particular case, it would be preferable to always exclude hidden users from the output of the script. Is th

Re: [xwiki-users] Display users that are not hidden

2016-04-06 Thread Thomas Mortagne
Instead of testing yourself in your script you should add a filter in your query. See http://extensions.xwiki.org/xwiki/bin/view/Extension/Query+Module#HFromVelocity for some examples. On Wed, Apr 6, 2016 at 5:33 PM, Mark Sack wrote: > I have a script as follows that displays a list of users that

[xwiki-users] Display users that are not hidden

2016-04-06 Thread Mark Sack
I have a script as follows that displays a list of users that meet some criteria (the actual where clause I'm using is a bit more complicated than shown below): {{velocity}} #set ($users=$services.query.xwql("FROM doc.object(XWiki.XWikiUsers) AS user WHERE (user.first_name LIKE '%Mar%')").execute(