Änderungen von Dokument Layout Section Macro
Zuletzt geändert von xwikiadmin am 2023/10/26 09:24
Von Version 3.1
bearbeitet von xwikiadmin
am 2023/04/25 10:54
am 2023/04/25 10:54
Änderungskommentar:
Install extension [com.xwiki.pro:xwiki-pro-macros/1.7.1]
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,29 +18,12 @@ 1 -{{velocity output="false"}} 2 -#macro (executeMacro) 3 - #set ($discard = $xwiki.ssx.use('Confluence.Macros.LayoutSection')) 4 - #set ($cssLayoutClass = $xcontext.macro.params.get('ac:type')) 5 - (% class="macro-layout-section $cssLayoutClass" %)((( 6 - ## Since 11.5 the content of the macro can be edited in WYSIWYG editor. 7 - #if ($services.rendering.getMacroDescriptor($services.rendering.resolveMacroId('wikimacrocontent'))) 8 - {{wikimacrocontent /}} 9 - #else 10 - $!xcontext.macro.content 11 - #end 12 - ))) 13 -#end 14 -{{/velocity}} 15 - 16 -{{include reference="Licenses.Code.VelocityMacros"/}} 17 - 18 18 {{velocity}} 19 -# # Weneedtocheckif there isvalidlicense becausethemacroisregistered even ifthe user doesn't have view right20 -# # on themacrodefinition page.SeeXWIKI-14828: Renderingmacros defined in wikipages areavailable to usersthat21 - ##don't haveview rightthose pages.22 -# if($services.licensing.licensor.hasLicensureForEntity($xcontext.macro.doc.documentReference))23 - #e xecuteMacro24 - #else25 - {{error}}26 - #getMissingLicenseMessage('proMacros.extension.name')27 - {{/error}}28 - #end2 +#set ($discard = $xwiki.ssx.use('Confluence.Macros.LayoutSection')) 3 +#set ($cssLayoutClass = $xcontext.macro.params.get('ac:type')) 4 +(% class="macro-layout-section $cssLayoutClass" %)((( 5 + ## Since 11.5 the content of the macro can be edited in WYSIWYG editor. 6 + #if ($services.rendering.getMacroDescriptor($services.rendering.resolveMacroId('wikimacrocontent'))) 7 + {{wikimacrocontent /}} 8 + #else 9 + $!xcontext.macro.content 10 + #end 11 +))) 29 29 {{/velocity}}