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

Von Version 1.1
bearbeitet von xwikiadmin
am 2024/06/24 15:22
Änderungskommentar: Install extension [com.xwiki.pro:xwiki-pro-macros-confluence-bridges-ui/1.19.4]
Auf 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]

Zusammenfassung

Details

XWiki.WikiMacroClass[0]
Makro-Code
... ... @@ -16,7 +16,21 @@
16 16   #end
17 17   #set($attachmentName = "${attachmentNamePrefix}_${resourceID}_${attachmentNameSuffix}.png")
18 18   #set($attachment = $doc.getAttachment($attachmentName))
19 - ## Display
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
20 20   #if($attachment)
21 21   (% style="text-align: ${imageAlignment}"%)(((
22 22   [[image:$services.rendering.escape($attachmentName, $xwiki.currentContentSyntaxId)]]