[xwiki-users] Disabling javascript in HTML macro

2016-04-15 Thread Andrew Kuang
Hi, I wanted to assess how difficult it might be to disable all javascript execution in HTML macros on XWiki. My main concern would be to avoid breaking any important XWiki pages that utilize javascript within the HTML macro (as referenced here:

Re: [xwiki-users] Parameter in different contexts

2016-04-15 Thread Vincent Massol
> On 15 Apr 2016, at 18:58, Matthias Wegner wrote: > > Hi Vincent, > > sorry i was not specific. > > Here an example: > > I want to make a page like: > MAIN.Overall > {{velocity}} > #set($SUPERCOUNTER=0) > #set($hql = "where ... order by doc.title asc") > #set($docs =

Re: [xwiki-users] Parameter in different contexts

2016-04-15 Thread Matthias Wegner
Hi Vincent, sorry i was not specific. Here an example: I want to make a page like: MAIN.Overall {{velocity}} #set($SUPERCOUNTER=0) #set($hql = "where ... order by doc.title asc") #set($docs = $xwiki.searchDocuments($hql, 0, 0)) #foreach ($dd in $docs) #set( $d = $xwiki.getDocument($dd))

Re: [xwiki-users] Can't make a groovy macro work

2016-04-15 Thread Daniel Ullfig
here is the code I'm working on; it's in a page called PlantUMLMacroGClass; I'm modifying plantuml to output svg instead of png so it is clickable and can contain links. It already is clickable, but the links of course are broken, so now I want to preprocess the uml definition to translate page

Re: [xwiki-users] Can't make a groovy macro work

2016-04-15 Thread Vincent Massol
> On 15 Apr 2016, at 05:32, dullfig wrote: > > Hello, I'm writing a macro extension in groovy. I need to use services > rendiring.parse () and i get an exception every time I try to use it. Can > anyone give a good example as to how to use it in a groovy script ? Thanks!