If we invoke it twice in a row: {{hello greetUser="true" /}} {{hello /}} The second invocation will not print "Hello World!" as we'd expect. But it will print the same result as the first invocation. The reasons are: * Macro parameters are implemented as global parameters. So, they remains the same across multiple macro invocations. * If $context.macro.params.greetUser contains "null", it will not be assigned to $greetUser. This is different from C/C++ or Java. So in order to get around it, you can use: #set($greetUser="$!context.macro.params.greetUser") Tags: [+] <http://platform.xwiki.org/xwiki/bin/view/DevGuide/WikiMacroTutorial?showTagAddForm=true#xdocTags> Created by Asiri Rathnayake <http://www.xwiki.org/xwiki/bin/view/XWiki/asiri> on 2009/07/20 08:30 Last modified by Thomas Mortagne <http://www.xwiki.org/xwiki/bin/view/XWiki/ThomasMortagne> on 2010/05/12 19:42 How can I add the Last Modified by in the bottom by the Created by like on Xwiki.org? Should be an easy way but I can't seem to figure out how to add code below the page like that. Is it in the Admin tools? If so where in there? Grant Sales Security Operations Analyst ING 20 Washington Ave South Minneapolis, MN 55401 Tel: 612.342.7889 Fax: 612.342.3428 Cell: 320.761.0966 Email: [email protected] www.ing-usa.com ING. Your future. Made easier. ® --------------------------------------------------------- NOTICE: The information contained in this electronic mail message is confidential and intended only for certain recipients. If you are not an intended recipient, you are hereby notified that any disclosure, reproduction, distribution or other use of this communication and any attachments is strictly prohibited. If you have received this communication in error, please notify the sender by reply transmission and delete the message without copying or disclosing it. ============================================================================================
participants (1)
-
Sales, G. (Grant)