Änderungen von Dokument Confluence Gallery Macro

Zuletzt geändert von xwikiadmin am 2025/12/11 06:32

Von Version 4.1
bearbeitet von xwikiadmin
am 2023/10/26 09:31
Änderungskommentar: Migrated property [type] from class [XWiki.WikiMacroParameterClass]
Auf Version 7.1
bearbeitet von xwikiadmin
am 2025/12/11 06:32
Änderungskommentar: Migrated property [executionIsolated] from class [XWiki.WikiMacroClass]

Zusammenfassung

Details

XWiki.WikiMacroClass[0]
Makro-Code
... ... @@ -10,7 +10,7 @@
10 10   #set ($pages = $pagesString.split(','))
11 11   ## Display the gallery title if it is set (newlines are needed for the following macro calls to be standalone)
12 12   #if ("$!title" != '')
13 - ==$title==
13 + ==$services.rendering.escape($title, $xwiki.currentContentSyntaxId)==
14 14   #end
15 15   ## add the current page to the page list if no pages were given
16 16   #if ("$!pagesString" == '')
... ... @@ -49,7 +49,7 @@
49 49   #if ($attachments.size() > 0)
50 50   {{gallery}}
51 51   #foreach ($attachment in $attachments)
52 - [[image:$attachment]]
52 + [[image:$services.rendering.escape($attachment, $xwiki.currentContentSyntaxId)]]
53 53   #end
54 54   {{/gallery}}
55 55   #end