On 11/14/09 6:09 PM, Zhaolin Feng wrote:
With the help of Sergiu Dumitriu, Marius Dumitru
Florea, Jerome
Velociter, Guillaume Lerouge, I finally struggled to create my first
XWiki Macro. Thank you.
http://code.xwiki.org/xwiki/bin/view/Macros/LightboxMacro
Thanks for your contribution, Zhaolin.
Please, help us make the documentation better.
For example, you could add a section about why one sometimes would need
$context.action != 'edit' when including a JSX on
http://platform.xwiki.org/xwiki/bin/view/DevGuide/WikiMacroTutorial, WDYT ?
Regards,
Jerome.
But the process is not without dramas.
1. The problem with {{velocity output="false"}} #if($context.action !=
'edit') {//velocity}}
2. Especially,
http://jira.xwiki.org/jira/browse/XWIKI-4591
I'm new to XWiki. The 2.0 syntax and velocity is great. But the
documentation and tutorial is not enough. And there are some gottas. I
lose two nights of sleep to the job :(
I think it's better to write more documents. And so there will be
lesser unhappy newbie developers like me.