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
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
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
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(