Änderungen von Dokument Layout Cell Macro

Zuletzt geändert von xwikiadmin am 2023/10/26 09:30

Von Version 4.1
bearbeitet von xwikiadmin
am 2023/10/26 09:30
Änderungskommentar: Migrated property [type] from class [XWiki.WikiMacroParameterClass]
Auf Version 1.1
bearbeitet von xwikiadmin
am 2022/05/10 12:01
Änderungskommentar: Install extension [com.xwiki.pro:xwiki-pro-macros/1.2.2]

Zusammenfassung

Details

XWiki.WikiMacroClass[0]
Makro-Code
... ... @@ -1,27 +16,10 @@
1 -{{velocity output="false"}}
2 -#macro (executeMacro)
3 - (% class="macro-layout-cell" %)(((
4 - ## Since 11.5 the content of the macro can be edited in WYSIWYG editor.
5 - #if ($services.rendering.getMacroDescriptor($services.rendering.resolveMacroId('wikimacrocontent')))
6 - {{wikimacrocontent /}}
7 - #else
8 - $!xcontext.macro.content
9 - #end
10 - )))
11 -#end
12 -{{/velocity}}
13 -
14 -{{include reference="Licenses.Code.VelocityMacros"/}}
15 -
16 16  {{velocity}}
17 -## We need to check if there is a valid license because the macro is registered even if the user doesn't have view right
18 -## on the macro definition page. See XWIKI-14828: Rendering macros defined in wiki pages are available to users that
19 -## don't have view right on those pages.
20 -#if ($services.licensing.licensor.hasLicensureForEntity($xcontext.macro.doc.documentReference))
21 - #executeMacro
22 -#else
23 - {{error}}
24 - #getMissingLicenseMessage('proMacros.extension.name')
25 - {{/error}}
26 -#end
2 +(% class="macro-layout-cell" %)(((
3 + ## Since 11.5 the content of the macro can be edited in WYSIWYG editor.
4 + #if ($services.rendering.getMacroDescriptor($services.rendering.resolveMacroId('wikimacrocontent')))
5 + {{wikimacrocontent /}}
6 + #else
7 + $!xcontext.macro.content
8 + #end
9 +)))
27 27  {{/velocity}}