Änderungen von Dokument Balsamiq Macro
Zuletzt geändert von xwikiadmin am 2023/10/26 09:38
Von Version 5.1
bearbeitet von xwikiadmin
am 2023/10/26 09:38
am 2023/10/26 09:38
Änderungskommentar:
Install extension [com.xwiki.pro:xwiki-pro-macros/1.12]
Auf Version 2.1
bearbeitet von xwikiadmin
am 2022/08/11 16:36
am 2022/08/11 16:36
Änderungskommentar:
Migrated property [defaultCategories] from class [XWiki.WikiMacroClass]
Zusammenfassung
-
Objekte (1 geändert, 0 hinzugefügt, 0 gelöscht)
Details
- XWiki.WikiMacroClass[0]
-
- Makro-Code
-
... ... @@ -1,5 +1,4 @@ 1 -{{velocity output="false"}} 2 -#macro (executeMacro) 1 +{{velocity}} 3 3 ## Macro parameters 4 4 #set($resourceID = $wikimacro.parameters.get('initialResourceID')) 5 5 #set($initialBranchID = $wikimacro.parameters.get('initialBranchID')) ... ... @@ -14,27 +14,12 @@ 14 14 #if("$!alignment" != '') 15 15 #set($imageAlignment = $alignment.toLowerCase()) 16 16 #end 17 - #set($att achmentName = "${attachmentNamePrefix}_${resourceID}_${attachmentNameSuffix}.png")18 - #set($attachment = $doc.getAttachment($att achmentName))16 + #set($attchmentName = "${attachmentNamePrefix}_${resourceID}_${attachmentNameSuffix}.png") 17 + #set($attachment = $doc.getAttachment($attchmentName)) 19 19 ## Display 20 20 #if($attachment) 21 21 (% style="text-align: ${imageAlignment}"%)((( 22 - [[image:$ services.rendering.escape($attachmentName, $xwiki.currentContentSyntaxId)]]21 + [[image:${attchmentName}]] 23 23 ))) 24 24 #end 25 -#end 26 26 {{/velocity}} 27 - 28 -{{include reference="Licenses.Code.VelocityMacros"/}} 29 - 30 -{{velocity}} 31 -## We need to check if there is a valid license because the macro is registered even if the user doesn't have view right 32 -## on the macro definition page. See XWIKI-14828: Rendering macros defined in wiki pages are available to users that 33 -## don't have view right on those pages. 34 -#if ($services.licensing.licensor.hasLicensureForEntity($xcontext.macro.doc.documentReference)) 35 - #executeMacro 36 -#else 37 - {{error}} 38 - #getMissingLicenseMessage('proMacros.extension.name') 39 - {{/error}} 40 -#end