Last modified by Frank Fock on 2026/04/03 11:46

From version 3.1
edited by Frank Fock
on 2025/04/29 19:14
Change comment: Migrated property [featureMandatory] from class [XWiki.WikiMacroParameterClass]
To version 1.1
edited by Frank Fock
on 2025/01/26 23:11
Change comment: Install extension [com.xwiki.pro:xwiki-pro-macros-confluence-bridges-ui/1.25.5]

Summary

Details

XWiki.WikiMacroClass[0]
Macro 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)]]