Hi, Op 7 jan. 2013, om 10:17 heeft Thomas Mortagne <[email protected]> het volgende geschreven:
On Mon, Jan 7, 2013 at 10:05 AM, Gerritjan Koekkoek <[email protected]> wrote:
Hi,
I'm writing a macro as described on 'Writing XWiki Rendering Macros in wiki pages' I've create a object of class WikiMacroClass
I fail to understand what is meant by the two attributes: Macro Content Type; No Content, Optional or Mandatory and Content Description. This is what's in the manual: • Macro content type: Whether this macro should support a body or not • Content description: A short description about the macro's content to be displayed on the WYSIWYG editor
What is a body, can somebody give a example? Maybe good to extend the manual also with such a example?
The content/body is what you have in the macro.
without macro content: {{macro/}} with macro content: {{macro}}some body{{/body}} Thanks, Is it like the {{Box}} macro? It the wysywig it looks like a parameter called Content, but when you read the wiki code it is specified as: {{box cssClass="someClass" image="someimage" title="someTitle" width="50%"}} This is the content {{/box}}
So for that macro the params are: cssClass, image, title and width. content type is optional and content description would be: whatever the box contains?
thxs Gerritjan _______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
-- Thomas Mortagne _______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users