Changes for page Show Hide Macro
Last modified by Scott Gagan on 2025/08/19 20:33
From version 3.1
edited by admin
on 2024/10/04 18:23
on 2024/10/04 18:23
Change comment:
Migrated property [type] from class [XWiki.WikiMacroParameterClass]
To version 1.1
edited by Scott Gagan
on 2021/12/16 18:22
on 2021/12/16 18:22
Change comment:
Install extension [org.xwiki.contrib.showhide:showhide-macro/2.0.1]
Summary
-
Page properties (2 modified, 0 added, 0 removed)
-
Objects (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Author
-
... ... @@ -1,1 +1,1 @@ 1 -XWiki. admin1 +XWiki.scottg - Syntax
-
... ... @@ -1,1 +1,1 @@ 1 -XWiki 2. 11 +XWiki 2.0
- XWiki.WikiMacroClass[0]
-
- Macro code
-
... ... @@ -1,9 +1,6 @@ 1 1 {{velocity}} 2 -#set($discard = $xwiki.jsx.use("Macros.ShowHideMacro")) 3 -#set($mparams = $wikimacro.parameters) 4 -#if(!$mparams) 5 - #set($mparams = $xcontext.macro.params) 6 -#end 2 +$xwiki.jsx.use("Macros.ShowHideMacro") 3 +#set($mparams = $xcontext.macro.params) 7 7 #if($mparams.id) 8 8 #set($id = $util.convertToAlphaNumeric($mparams.id)) 9 9 #end ... ... @@ -28,7 +28,7 @@ 28 28 (% class="showhidecontent" #if($id && $id!="")id="showhidecontent${id}" #end style="display: none;" %) 29 29 ((( 30 30 ((( 31 -$ xcontext.macro.content28 +$context.macro.content 32 32 ))) 33 33 ))) 34 34 )))