Änderungen von Dokument Expand
Zuletzt geändert von xwikiadmin am 2025/01/07 11:39
Von Version 4.1
bearbeitet von xwikiadmin
am 2025/01/07 11:39
am 2025/01/07 11:39
Änderungskommentar:
Install extension [com.xwiki.pro:xwiki-pro-macros-ui/1.25.4]
Auf Version 3.1
bearbeitet von xwikiadmin
am 2024/06/24 14:35
am 2024/06/24 14:35
Änderungskommentar:
Install extension [com.xwiki.pro:xwiki-pro-macros-ui/1.19.4]
Zusammenfassung
-
Seiteneigenschaften (1 geändert, 0 hinzugefügt, 0 gelöscht)
-
Objekte (3 geändert, 0 hinzugefügt, 1 gelöscht)
Details
- Seiteneigenschaften
-
- Inhalt
-
... ... @@ -3,13 +3,11 @@ 3 3 = Parameters = 4 4 5 5 |=Parameter|=Description|=Required|=Default 6 -|**title**|Text displayed on the collaspse toggle|No|(empty) 7 -|**expanded**|If selected the expand will be opened automatically when loading the page.|No|False 6 +|**title**|Text displayed on the collaspse toggle|No|Click here to expand... 8 8 9 -Note: if no title is provided, the title of the first panel or the first header appearing in the content will be used. if there is no such header or panel title, "Click here to expand…" will be used. 10 10 11 11 = Example Usage = 12 12 13 -{{expand expanded="false"}}11 +{{expand}} 14 14 Hello 👀 15 15 {{/expand}}
- XWiki.StyleSheetExtension[0]
-
- Code
-
... ... @@ -8,9 +8,8 @@ 8 8 transform: rotate(90deg); 9 9 } 10 10 11 -.confluence-expand-macro .panel-title{ 11 +.confluence-expand-macro .panel-title { 12 12 padding: @panel-heading-padding; 13 - display: block; 14 14 } 15 15 16 16 .confluence-expand-macro .panel-body { ... ... @@ -31,11 +31,6 @@ 31 31 border: none; 32 32 } 33 33 34 -.confluence-expand-macro.panel.panel-default .panel-body ul { 35 - list-style-type: revert; 36 - padding-left: revert; 37 -} 38 - 39 39 .confluence-expand-macro.panel { 40 40 background: unset; 41 41 }
- XWiki.WikiMacroClass[0]
-
- Makro-Code
-
... ... @@ -1,21 +1,14 @@ 1 1 {{velocity output="false"}} 2 2 #macro (executeMacro) 3 - #set ($discard = $xwiki.ssx.use('Confluence.Macros.Expand'))4 - #set ($opened = $xcontext.action == 'edit' || $ xcontext.action == 'export'||$wikimacro.parameters.expanded)3 + $xwiki.ssx.use('Confluence.Macros.Expand') 4 + #set ($opened = $xcontext.action == 'edit' || $request.getParameter('format') == "html-print") 5 5 {{html clean="false" wiki="true"}} 6 6 <details class="confluence-expand-macro panel panel-default" #if ($opened)open#end> 7 7 <summary> 8 - < spanclass="panel-title">8 + <div class="panel-title"> 9 9 <span class="glyphicon glyphicon-menu-right" aria-hidden="true"></span> 10 - #set ($title = $wikimacro.parameters.title) 11 - #if ("$!title" == "") 12 - #set ($title = $services.promacroexpand.getAutoTitle($wikimacro.content, $xwiki.currentContentSyntaxId)) 13 - #if ("$!title" == "") 14 - #set ($title = $services.localization.render("rendering.macro.expand.defaultexpandtitle")) 15 - #end 16 - #end 17 - $services.rendering.escape($escapetool.xml($title), $xwiki.currentContentSyntaxId) 18 - </span> 10 + $services.rendering.escape($escapetool.xml("${wikimacro.parameters.title}"), 'xwiki/2.1') 11 + </div> 19 19 </summary> 20 20 <div class="panel-body"> 21 21
- XWiki.WikiMacroParameterClass[0]
-
- Parameter-Vorgabe
-
... ... @@ -1,0 +1,1 @@ 1 +Click here to expand...
- XWiki.WikiMacroParameterClass[1]
-
- Parameter-Vorgabe
-
... ... @@ -1,1 +1,0 @@ 1 -0 - Parameter-Name
-
... ... @@ -1,1 +1,0 @@ 1 -expanded - Parameter-Typ
-
... ... @@ -1,1 +1,0 @@ 1 -java.lang.Boolean - Parameter verpflichtend
-
... ... @@ -1,1 +1,0 @@ 1 -Nein