Änderungen von Dokument Column
Zuletzt geändert von xwikiadmin am 2023/10/26 09:38
Von Version 1.1
bearbeitet von xwikiadmin
am 2022/02/23 10:52
am 2022/02/23 10:52
Änderungskommentar:
Install extension [com.xwiki.pro:xwiki-pro-macros/1.2.1]
Auf Version 6.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]
Zusammenfassung
-
Objekte (1 geändert, 0 hinzugefügt, 0 gelöscht)
Details
- XWiki.WikiMacroClass[0]
-
- Makro-Code
-
... ... @@ -1,16 +1,27 @@ 1 -{{velocity}} 2 -#set ($discard = $xwiki.ssx.use('Confluence.Macros.Column')) 3 -#set ($style = '') 4 -#set ($extraCssClass = 'withWidth') 5 -#if ("$!xcontext.macro.params.width" != '') 6 - #set ($style = "style='width: $xcontext.macro.params.width'") 7 -#end 8 -(% class="macro-column" $style %)((( 9 - ## Since 11.5 the content of the macro can be edited in WYSIWYG editor. 10 - #if ($services.rendering.getMacroDescriptor($services.rendering.resolveMacroId('wikimacrocontent'))) 11 - {{wikimacrocontent /}} 12 - #else 13 - $!xcontext.macro.content 1 +{{velocity output="false"}} 2 +#macro (executeMacro) 3 + #set ($discard = $xwiki.ssx.use('Confluence.Macros.Column')) 4 + #set ($style = '') 5 + #set ($extraCssClass = 'withWidth') 6 + #if ("$!xcontext.macro.params.width" != '') 7 + #set ($style = "style='width: $xcontext.macro.params.width'") 14 14 #end 15 -))) 9 + (% class="macro-column" $style %)((( 10 + {{wikimacrocontent /}} 11 + ))) 12 +#end 16 16 {{/velocity}} 14 + 15 +{{include reference="Licenses.Code.VelocityMacros"/}} 16 + 17 +{{velocity}} 18 +## We need to check if there is a valid license because the macro is registered even if the user doesn't have view right 19 +## on the macro definition page. See XWIKI-14828: Rendering macros defined in wiki pages are available to users that 20 +## don't have view right on those pages. 21 +#if ($services.licensing.licensor.hasLicensureForEntity($xcontext.macro.doc.documentReference)) 22 + #executeMacro 23 +#else 24 + {{error}} 25 + #getMissingLicenseMessage('proMacros.extension.name') 26 + {{/error}} 27 +#end - Verfügbarkeit von Makroinhalten
-
... ... @@ -1,1 +1,1 @@ 1 - Mandatory1 +Optional