Änderungen von Dokument Status

Zuletzt geändert von xwikiadmin am 2024/06/24 15:04

Von Version 5.1
bearbeitet von xwikiadmin
am 2023/10/26 10:38
Änderungskommentar: Install extension [com.xwiki.pro:xwiki-pro-macros/1.12]
Auf Version 6.1
bearbeitet von xwikiadmin
am 2024/06/24 15:04
Änderungskommentar: Install extension [com.xwiki.pro:xwiki-pro-macros-ui/1.19.4]

Zusammenfassung

Details

Seiteneigenschaften
Übergeordnete Seite
... ... @@ -1,1 +1,1 @@
1 -xwiki:XWiki.Macros.WebHome
1 +WebHome
XWiki.WikiMacroClass[0]
Makro-Code
... ... @@ -1,6 +1,4 @@
1 -{{include reference="Licenses.Code.VelocityMacros"/}}{{comment}}
2 -A comment is needed in order to skip extra spaces added and use this macro inline.
3 -{{/comment}}{{velocity}}
1 +{{velocity}}
4 4  #macro (executeMacro)
5 5   #set ($discard = $xwiki.ssx.use('XWiki.Macros.Status'))
6 6   #set ($color = $escapetool.xml($xcontext.macro.params.colour))
... ... @@ -24,11 +24,9 @@
24 24  ## We need to check if there is a valid license because the macro is registered even if the user doesn't have view right
25 25  ## on the macro definition page. See XWIKI-14828: Rendering macros defined in wiki pages are available to users that
26 26  ## don't have view right on those pages.
27 -#if ($services.licensing.licensor.hasLicensureForEntity($xcontext.macro.doc.documentReference))
25 +#if ($services.promacrolicensing.hasLicensureForEntity($xcontext.macro.doc.documentReference))
28 28   #executeMacro
29 29  #else
30 - {{error}}
31 - #getMissingLicenseMessage('proMacros.extension.name')
32 - {{/error}}
28 + {{missingLicenseMessage extensionName="proMacros.extension.name"/}}
33 33  #end
34 34  {{/velocity}}