On Thu, Aug 9, 2012 at 9:42 AM, mohit gupta <motgupta(a)gmail.com> wrote:
Hi All,
i am on xwiki 3.5. i have created a macro and included in my TestPage with
below code
*{{RecentChangesMacro rcSpace="MySpaceName"}}{{/RecentChangesMacro}}*
Now in RecentChangesMacro , i have below code , which tries to access the
above passed parameter inside velocity template
*#set($rcSpace1 = $xontext.macro.params.rcSpace)*
"xontext"?
but when i print it with below snippet
*Value of rcSpace1 is $rcSpace1*
the output is *"Value of rcSpace1 is $rcSpace1" *where expected the output
is * "Value of rcSpace1 is MySpaceName".*
I am not sure why i am able to access the parameter rcSpace in macro?
For information, i have also attached the object of
"WikiMacroParameterClass" with parameter name "rcSpace" as explained
at
http://platform.xwiki.org/xwiki/bin/view/DevGuide/WikiMacroTutorial.
This mailing list doesn't accept attachments. You can paste your code
somewhere on the web (e.g.
http://pastebin.com ).
Marius
Regards
_______________________________________________
users mailing list
users(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/users