On Mon, Jan 7, 2013 at 10:48 AM, Vereniging CdLS
 <gerritjankoekkoek(a)gmail.com> wrote:
  Hi,
 Op 7 jan. 2013, om 10:17 heeft Thomas Mortagne <thomas.mortagne(a)xwiki.com> het
volgende geschreven:
  On Mon, Jan 7, 2013 at 10:05 AM, Gerritjan
Koekkoek
 <gerritjankoekkoek(a)gmail.com> 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?
 I don't remember if it's mandatory or just optional in box macro but
 that's it yes. The WYSIWYG handles it as a parameter visually but it's
 pretty different thing behind the scene.
 thxs
 Gerritjan
 _______________________________________________
 users mailing list
 users(a)xwiki.org
 
http://lists.xwiki.org/mailman/listinfo/users 
 --
 Thomas Mortagne
 _______________________________________________
 users mailing list
 users(a)xwiki.org
 
http://lists.xwiki.org/mailman/listinfo/users  
 _______________________________________________
 users mailing list
 users(a)xwiki.org
 
http://lists.xwiki.org/mailman/listinfo/users  
 --
 Thomas Mortagne
 _______________________________________________
 users mailing list
 users(a)xwiki.org