Hi, I found a workaround this morning in my tests which is to remove the {{velocity}{{html}} wrapping the velocity code and saving Mockups.MacrosV2 with the XWIki 1.0 Syntax flag. This basically means Mockups.Macros and Mockups.MacrosV2 have the same content and page syntax flag. It's curious, but I remember directly including Mockups.Macros wasn't working in 2.0 Syntax pages at some point, so we had to create Mockups.MacrosV2. But apparently we don't really need it now. Do you have any idea at what point the behavior changed ? Thanks, Luis On Sat, Sep 4, 2010 at 3:59 PM, Luis Arias <[email protected]> wrote:
Ah great, I'll download a build and test in our environment. It seems that the Mockups.MacrosV2 page is shown as an XWiki 2.0 Syntax page in the WIKI editor but is using 1.0 Syntax. Could this be part of the issue ? We want to have the largest backwards compatibility. Right now this means we compile against the xwiki 1.5 jars. I'm not sure if XWiki 2.0 syntax was actually around back then, from memory it was announced with 1.7 right ? In that case it is in my eyes definitely a mistake on our part to carry pages marked as 2.0 syntax in our XAR. I will also try setting the syntax of any such pages to 1.0 and retesting. If you wish to test as we do, you can follow the instructions to download and install Mockups for XWiki here and then try to add a mockup to a page:
http://www.balsamiq.com/products/mockups/xwiki#download
Thanks for your help on this !
Luis