Hi, If I want to have parameters to return values in a more structured way (not directly usable from wysywig?) do I need to create parameters (optional) since they will not have a value when called? Or how do I do this in these macro's? Or should I just write a macro in velocity?
Can I call these macro's from velocity to set some variables? My macro will now take 'first name' and 'last name' from xwiki user. I would like to return a few results about this user, not just text (could even be a object) Op 7 jan. 2013, om 12:07 heeft Thomas Mortagne <thomas.morta...@xwiki.com> het volgende geschreven: > On Mon, Jan 7, 2013 at 10:48 AM, Vereniging CdLS > <gerritjankoekk...@gmail.com> wrote: >> Hi, >> Op 7 jan. 2013, om 10:17 heeft Thomas Mortagne <thomas.morta...@xwiki.com> >> het volgende geschreven: >> >>> On Mon, Jan 7, 2013 at 10:05 AM, Gerritjan Koekkoek >>> <gerritjankoekk...@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@xwiki.org >>>> http://lists.xwiki.org/mailman/listinfo/users >>> >>> >>> >>> -- >>> Thomas Mortagne >>> _______________________________________________ >>> users mailing list >>> users@xwiki.org >>> http://lists.xwiki.org/mailman/listinfo/users >> >> _______________________________________________ >> users mailing list >> users@xwiki.org >> http://lists.xwiki.org/mailman/listinfo/users > > > > -- > Thomas Mortagne > _______________________________________________ > users mailing list > users@xwiki.org > http://lists.xwiki.org/mailman/listinfo/users _______________________________________________ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users