Re: [xwiki-users] XWQL query: Grouping Date properties by year ?

2015-09-23 Thread vinc...@massol.net
Hi Sylvain, On 23 Sep 2015 at 13:05:18, Thomas Mortagne (thomas.morta...@xwiki.com(mailto:thomas.morta...@xwiki.com)) wrote: > Unfortunately extracting the year of a date field is not supported by > XWQL. See http://jira.xwiki.org/browse/XWIKI-6645. As a workaround you could maybe use HQL,

Re: [xwiki-users] XWQL query: Grouping Date properties by year ?

2015-09-23 Thread Thomas Mortagne
Unfortunately extracting the year of a date field is not supported by XWQL. See http://jira.xwiki.org/browse/XWIKI-6645. On Wed, Sep 23, 2015 at 12:01 PM, Sylvain MARIE wrote: > Hello, > > The following query counts documents by publication date. > {{velocity}} > ##

[xwiki-users] XWQL query: Grouping Date properties by year ?

2015-09-23 Thread Sylvain MARIE
Hello, The following query counts documents by publication date. {{velocity}} ## Count all publication dates #set($results=$services.query.xwql("select guide.DocumentDate, count(guide.DocumentDate) from Document doc, doc.object(BIMGuides.GuideClass) as guide group by guide.DocumentDate order by

Re: [xwiki-users] Set plain output from within script

2015-09-23 Thread Bryn Jeffries
> > Vincent wrote: > > > {{velocity}} > > > #if("$!{request.xpage}" != 'plain') > > > $response.sendRedirect() #else > > > Hello world! > > > #end > > > {{/velocity}} > > > > > > > Thanks again for the quick response. That's a good suggestion, but I think > loses any query parameters that I'd

Re: [xwiki-users] Set plain output from within script

2015-09-23 Thread vinc...@massol.net
Hi Bryn, On 23 Sep 2015 at 07:48:15, Bryn Jeffries (bryn.jeffr...@sydney.edu.au(mailto:bryn.jeffr...@sydney.edu.au)) wrote: > I have several scripts (Groovy and Velocity) that generate output that should > not be rendered as a Wiki page. This is necessary, for example, when > rendering JSON.

Re: [xwiki-users] Set plain output from within script

2015-09-23 Thread Thomas Mortagne
On Wed, Sep 23, 2015 at 9:27 AM, Bryn Jeffries wrote: > I wrote: >>> I have several scripts (Groovy and Velocity) that generate output that >>> should not be rendered as a Wiki page. This is necessary, for example, when >>> rendering JSON. As documented before >>>

Re: [xwiki-users] Using LDAP for page access rights with Kerberos auth

2015-09-23 Thread Thomas Mortagne
On Wed, Sep 23, 2015 at 4:42 AM, Debajit Adhikary wrote: > Thanks, I was able to set it up successfully. > > I want to check if the currently logged-in user ($xwiki.getUser()) is a > member of a particular LDAP group. What is the best way to do this with the > "Trusted LDAP"

Re: [xwiki-users] Set plain output from within script

2015-09-23 Thread Bryn Jeffries
I wrote: >> I have several scripts (Groovy and Velocity) that generate output that >> should not be rendered as a Wiki page. This is necessary, for example, when >> rendering JSON. As documented before >> (http://extensions.xwiki.org/xwiki/bin/view/Extension/Output+JSON) , it's >> possible to

Re: [xwiki-users] Set plain output from within script

2015-09-23 Thread vinc...@massol.net
On 23 Sep 2015 at 09:27:36, Bryn Jeffries (bryn.jeffr...@sydney.edu.au(mailto:bryn.jeffr...@sydney.edu.au)) wrote: > I wrote: > >> I have several scripts (Groovy and Velocity) that generate output that > >> should not be rendered as a Wiki page. This is necessary, for example, > >> when

Re: [xwiki-users] Fwd: XWiki initialization failed! with xwiki-enterprise-web-7.2 ?

2015-09-23 Thread Marius Dumitru Florea
On Tue, Sep 22, 2015 at 6:52 PM, Mohit Gupta wrote: > Yes its hardcoded in init.vm. It works fine after installing 7.2 version. > But looks like some issue is there with Admin rights as I installed one > application i.e bulletin board but when i try to add category it gives me

Re: [xwiki-users] Set plain output from within script

2015-09-23 Thread Bryn Jeffries
Vincent wrote: > {{velocity}} > #if("$!{request.xpage}" != 'plain') >   $response.sendRedirect($doc.getURL('view', 'xpage=plain')) #else >   Hello world! > #end > {{/velocity}} > Thanks again for the quick response. That's a good suggestion, but I think loses any query parameters that I'd

Re: [xwiki-users] Set plain output from within script

2015-09-23 Thread vinc...@massol.net
  On 23 Sep 2015 at 09:55:29, Bryn Jeffries (bryn.jeffr...@sydney.edu.au(mailto:bryn.jeffr...@sydney.edu.au)) wrote: > Vincent wrote: > > {{velocity}} > > #if("$!{request.xpage}" != 'plain') > > $response.sendRedirect($doc.getURL('view', 'xpage=plain')) #else > > Hello world! > > #end > >

Re: [xwiki-users] Using LDAP for page access rights with Kerberos auth

2015-09-23 Thread Debajit Adhikary
Thanks for the clarification, Thomas. Does LDAP group syncing work with Trusted LDAP? (I am able to log in using Trusted LDAP, and can see my LDAP details like full-name and email address show up, but I am not able to get LDAP group_mapping to work at all — so I'd like to confirm if it would