Änderungen von Dokument Mockup 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 ## Filename format : <balsamiq/mockup>_<$Name/$initialResourceID>[/_$initialBranchID].png 4 4 #set($attachmentNamePrefix = 'balsamiq') 5 5 #set($attachmentNameSuffix = '') ... ... @@ -18,22 +18,6 @@ 18 18 #set($attachment = $doc.getAttachment($attachmentName)) 19 19 #end 20 20 #if($attachment) 21 - [[image:$ services.rendering.escape($attachmentName, $xwiki.currentContentSyntaxId)]]20 + [[image:${attachmentName}]] 22 22 #end 23 -#end 24 24 {{/velocity}} 25 - 26 -{{include reference="Licenses.Code.VelocityMacros"/}} 27 - 28 -{{velocity}} 29 -## We need to check if there is a valid license because the macro is registered even if the user doesn't have view right 30 -## on the macro definition page. See XWIKI-14828: Rendering macros defined in wiki pages are available to users that 31 -## don't have view right on those pages. 32 -#if ($services.licensing.licensor.hasLicensureForEntity($xcontext.macro.doc.documentReference)) 33 - #executeMacro 34 -#else 35 - {{error}} 36 - #getMissingLicenseMessage('proMacros.extension.name') 37 - {{/error}} 38 -#end 39 -{{/velocity}}