Changes for page Show Hide Macro

Last modified by jklein on 2025/06/02 14:04

From version 14.2
edited by jklein
on 2025/06/02 12:21
Change comment: There is no comment for this version
To version 9.13
edited by jklein
on 2025/06/02 10:02
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -4,12 +4,9 @@
4 4  XWiki 5.x or more.
5 5  
6 6  {{showhide title="PublicAPI" effect="slide" effectduration="0.5"}}
7 -{{code language="PowerShell"}}
8 -Hier steht neuer Code
9 -Code
10 -Code
11 -Code
12 -{{/code}}
7 +Inhalt
8 +Inhalt
9 +Inhalt
13 13  {{/showhide}}
14 14  
15 15  {{info}}
XWiki.JavaScriptExtension[0]
Use this extension
... ... @@ -1,1 +1,1 @@
1 -onDemand
1 +currentPage
XWiki.StyleSheetExtension[0]
Code
... ... @@ -33,15 +33,6 @@
33 33   background-color: #fff;
34 34  }
35 35  
36 -.showhide-header:hover {
37 - background-color: #f0f0f0;
38 - cursor: default;
39 -}
40 -
41 -.showhidebutton a:hover {
42 - text-decoration: underline;
43 -}
44 -
45 45  .showhide-icon {
46 46   color: #0645ad; /* typisches Link-Blau */
47 47   text-decoration: underline;
Use this extension
... ... @@ -1,1 +1,1 @@
1 -always
1 +currentPage
XWiki.WikiMacroClass[0]
Macro code
... ... @@ -28,8 +28,8 @@
28 28   data-show-message="$showmessage"
29 29   data-hide-message="$hidemessage">
30 30   <div class="showhide-header-flex">
31 - <div class="showhide-title">$title</div>
32 - <div class="showhide-icon">$showmessage</div>
31 + <div class="showhide-title">$title</div>
32 + <div class="showhide-icon">$showmessage</div>
33 33   </div>
34 34  </div>
35 35  {{/html}}
© Aagon GmbH 2025
Besuchen Sie unsere Aagon-Community