> > 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 passe
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
> > {{/
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 passed
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
>>> (http://extensions.xwiki.org/
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 rende
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
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. A
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 allow such content by inc