Zuletzt geändert von xwikiadmin am 2025/05/21 10:12

Von Version 3.1
bearbeitet von xwikiadmin
am 2025/05/21 10:12
Änderungskommentar: Install extension [com.xwiki.pro:xwiki-pro-macros-confluence-bridges-ui/1.26.19]
Auf Version 2.1
bearbeitet von xwikiadmin
am 2025/05/21 09:23
Änderungskommentar: Migrated property [feature] from class [XWiki.WikiMacroParameterClass]

Zusammenfassung

Details

XWiki.WikiMacroClass[0]
Makro-Code
... ... @@ -16,21 +16,7 @@
16 16   #end
17 17   #set($attachmentName = "${attachmentNamePrefix}_${resourceID}_${attachmentNameSuffix}.png")
18 18   #set($attachment = $doc.getAttachment($attachmentName))
19 - ## Looking for other known prefixes.
20 - #if ("$!attachment" == '')
21 - #set ($attachmentName = "balsamiq_wireframe_${resourceID}_${attachmentNameSuffix}.png" )
22 - #set($attachment = $doc.getAttachment($attachmentName))
23 - #end
24 - ## Look through all attachments and use the one that matches the resourceID.
25 - #if ("$!attachment" == '')
26 - #foreach ($att in $doc.getAttachmentList())
27 - #if ($att.getFilename().contains($resourceID))
28 - #set ($attachment = $att)
29 - #set ($attachmentName = $att.getFilename())
30 - #break
31 - #end
32 - #end
33 - #end
19 + ## Display
34 34   #if($attachment)
35 35   (% style="text-align: ${imageAlignment}"%)(((
36 36   [[image:$services.rendering.escape($attachmentName, $xwiki.currentContentSyntaxId)]]