Änderungen von Dokument Column

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

Von Version 6.1
bearbeitet von xwikiadmin
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
Änderungskommentar: Migrated property [defaultCategories] from class [XWiki.WikiMacroClass]

Zusammenfassung

Details

XWiki.WikiMacroClass[0]
Makro-Code
... ... @@ -1,27 +17,16 @@
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'")
8 - #end
9 - (% class="macro-column" $style %)(((
10 - {{wikimacrocontent /}}
11 - )))
12 -#end
13 -{{/velocity}}
14 -
15 -{{include reference="Licenses.Code.VelocityMacros"/}}
16 -
17 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}}
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'")
27 27  #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
14 + #end
15 +)))
16 +{{/velocity}}
Verfügbarkeit von Makroinhalten
... ... @@ -1,1 +1,1 @@
1 -Optional
1 +Mandatory