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 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. -- -- Currahee! We stand alone together! _______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs

