[xwiki-users] Script macros via RESTful API?
Hi, Noob question... We're using the RESTful API to embed our XWiki content in an external HTML page. I'm wondering whether there's an easy way to still use velocity macros (or any basic script macros) via the RESTful API or does this require including additional uicomponent javascript/css files in the external HTML page? Have been trying to find documentation on this but can't seem to. The macros display fine on the XWiki pages but the external HTML page says: The "gallery" macro is not in the list of registered macros. Verify the spelling or contact your administrator. Thanks, Eva
On Thu, Jan 5, 2012 at 12:07 AM, Eva Shon <eshon@openplans.org> wrote:
Hi,
Noob question... We're using the RESTful API to embed our XWiki content in an external HTML page. I'm wondering whether there's an easy way to still use velocity macros (or any basic script macros) via the RESTful API or does this require including additional uicomponent javascript/css files in the external HTML page? Have been trying to find documentation on this but can't seem to.
The macros display fine on the XWiki pages but the external HTML page says:
The "gallery" macro is not in the list of registered macros. Verify the spelling or contact your administrator.
Which REST resource (URL) are you using to get the rendered content of a page (including the rendered macros)? In this particular case, the gallery macro needs external CSS and JavaScript code. So even if you manage to get the rendered content of the gallery macro, it won't display as expected unless you include the required CSS and JavaScript in the head of you final HTML page. Hope this helps, Marius
Thanks,
Eva _______________________________________________ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
participants (2)
-
Eva Shon -
Marius Dumitru Florea