If you add in your page
#macro(hi $name)
$xwiki.myplugin.function($name)
#end
then you will be able to use
#hi("Michael")
Once you are happy with your macro you can add it to a macros.vm page
and declare it in velocities.properties (restart needed)
Ludovic
MikhaelSantos wrote:
> Hi guys!
>
> I'm trying to add my own macros on xwiki but they are functions made in
> java.
> for example if I had to edit a xwiki page and added
> xwiki.myplugin.function("Mikhael") on the preview my function would show the
> following Text : "Hello Mikhael your plugin is working!". Now what I want to
> know is how do a turn xwiki.myplugin.function("Mikhael") into for example "
> $hi("Mikhael") "? Give it a more macro look.
>
> I look foward to your answers and thank you for helping out
> Mikhael
>
--
Ludovic Dubost
Blog: http://blog.ludovic.org/
XWiki: http://www.xwiki.com
Skype: ldubost GTalk: ldubost
_______________________________________________
devs mailing list
[email protected]
http://lists.xwiki.org/mailman/listinfo/devs