[xwiki-users] Veloity Macros in XWiki 2.0

Thomas Mortagne thomas.mortagne at xwiki.com
Mon Feb 2 14:35:52 CET 2009


On Mon, Feb 2, 2009 at 2:24 PM, hel-o <hel at hel.at> wrote:
>
> Should i add an info in the Syntax page?

No I don't think so, http://jira.xwiki.org/jira/browse/XWIKI-3079 will
be fixed for 1.8 final release. Lets say currently the doc is right
but there is a bug in macro.vm.

>
> hel.
>
>
> tmortagne wrote:
>>
>> On Sat, Jan 31, 2009 at 9:23 PM, hel-o <hel at hel.at> wrote:
>>>
>>> Hi,
>>>
>>> adding velocity macros that create html doesn't work the way it is
>>> described
>>> in the XWikiSyntax page:
>>>
>>> http://platform.xwiki.org/xwiki/bin/view/Main/XWikiSyntax#HVelocity2FGroovyScripts
>>>
>>> The syntax mentioned here doesn't work:
>>>
>>> {{velocity}} #info("Some info text") {{/velocity}}
>>>
>>> The html code ist displayed as code:
>>>
>>> <div class="infomessage">test</div>
>>>
>>> This syntax works but i don't know if this is correct:
>>>
>>> {{velocity}}{{html}} #info("Some info text") {{/html}}{{/velocity}}
>>
>> Yes it's the right syntax, the documentation is wrong here because
>> #info velocity is wrong, it should add the {{html}} macro itself when
>> it's running in XWiki syntax 2.0. See
>> http://jira.xwiki.org/jira/browse/XWIKI-3079
>>
>>>
>>> hel.
>>>
>>> works
>>>
>>> -----
>>> Helmut Lehner
>>> hel at hel.at
>>>
>>> --
>>> View this message in context:
>>> http://n2.nabble.com/Veloity-Macros-in-XWiki-2.0-tp2251210p2251210.html
>>> Sent from the XWiki- Users mailing list archive at Nabble.com.
>>>
>>> _______________________________________________
>>> users mailing list
>>> users at xwiki.org
>>> http://lists.xwiki.org/mailman/listinfo/users
>>>
>>
>>
>>
>> --
>> Thomas Mortagne
>> _______________________________________________
>> users mailing list
>> users at xwiki.org
>> http://lists.xwiki.org/mailman/listinfo/users
>>
>>
>
>
> -----
> Helmut Lehner
> hel at hel.at
>
> --
> View this message in context: http://n2.nabble.com/Veloity-Macros-in-XWiki-2.0-tp2251210p2257899.html
> Sent from the XWiki- Users mailing list archive at Nabble.com.
>
> _______________________________________________
> users mailing list
> users at xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users
>



-- 
Thomas Mortagne


More information about the users mailing list