Changes for page Expand
Last modified by Yana Oksner on 2025/04/30 10:28
From version 2.1
edited by Yana Oksner
on 2024/02/23 13:49
on 2024/02/23 13:49
Change comment:
Install extension [com.xwiki.pro:xwiki-pro-macros/1.15.0]
To version 4.1
edited by Yana Oksner
on 2024/04/08 11:44
on 2024/04/08 11:44
Change comment:
Install extension [com.xwiki.pro:xwiki-pro-macros/1.16.3]
Summary
-
Objects (2 modified, 0 added, 0 removed)
Details
- XWiki.StyleSheetExtension[0]
-
- Code
-
... ... @@ -4,7 +4,7 @@ 4 4 transition: transform 0.3s; 5 5 } 6 6 7 -.confluence-expand-macro[open] .glyphicon { 7 +.confluence-expand-macro[open] > summary .glyphicon { 8 8 transform: rotate(90deg); 9 9 } 10 10
- XWiki.WikiMacroClass[0]
-
- Macro code
-
... ... @@ -7,12 +7,14 @@ 7 7 <details class="confluence-expand-macro panel panel-default" #if ($opened)open#end> 8 8 <summary> 9 9 <div class="panel-title"> 10 - <span class="glyphicon glyphicon-menu-right" aria-hidden="true"></span> 11 - $services.rendering.escape($escapetool.xml("${wikimacro.parameters.title}"), 'xwiki/2.1') 10 + <span class="glyphicon glyphicon-menu-right" aria-hidden="true"></span> 11 + $services.rendering.escape($escapetool.xml("${wikimacro.parameters.title}"), 'xwiki/2.1') 12 12 </div> 13 13 </summary> 14 14 <div class="panel-body"> 15 + 15 15 {{wikimacrocontent /}} 17 + 16 16 </div> 17 17 </details> 18 18 {{/html}} - Macro description
-
... ... @@ -1,5 +1,5 @@ 1 -Add the Expand macro to your page to provide content in an expandable / collapsible section. 1 +Add the Expand macro to your page to provide content in an expandable / collapsible section. 2 2 3 -This is one of Confluence's most popular macros. It's great for: visually reducing the amount of information on a page, breaking process information down into 3 +This is one of Confluence's most popular macros. It's great for: visually reducing the amount of information on a page, breaking process information down into clickable steps, hiding background or obsolete information, while still keeping it on the page for future reference. 4 4 5 -The macro is collapsed by default, people need to click each one to expand it. 5 +The macro is collapsed by default, people need to click each one to expand it. There's no way to expand all macros on a page at once, however all Expand macros are automatically expanded when you print or export the page to PDF.