Changes for page Confluence bridge for Balsamiq Wireframe
Last modified by Frank Fock on 2026/04/03 11:46
From version 1.1
edited by Frank Fock
on 2025/01/26 23:11
on 2025/01/26 23:11
Change comment:
Install extension [com.xwiki.pro:xwiki-pro-macros-confluence-bridges-ui/1.25.5]
To version 2.1
edited by Frank Fock
on 2025/04/04 21:18
on 2025/04/04 21:18
Change comment:
Install extension [com.xwiki.pro:xwiki-pro-macros-confluence-bridges-ui/1.26.14]
Summary
-
Objects (1 modified, 0 added, 0 removed)
Details
- XWiki.WikiMacroClass[0]
-
- Macro 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)]]