On Thu, Aug 9, 2012 at 8: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)*
Is this a bad copy past or you really used $xontext insead of $xcontext ?
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.
Regards
_______________________________________________
users mailing list
users(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/users
--
Thomas Mortagne