Changes for page Status
Last modified by Frank Fock on 2025/04/04 21:18
From version 4.1
edited by Frank Fock
on 2025/04/04 21:18
on 2025/04/04 21:18
Change comment:
Install extension [com.xwiki.pro:xwiki-pro-macros-ui/1.26.14]
To version 1.1
edited by Frank Fock
on 2024/02/07 18:16
on 2024/02/07 18:16
Change comment:
Install extension [com.xwiki.pro:xwiki-pro-macros/1.14.3]
Summary
-
Page properties (1 modified, 0 added, 0 removed)
-
Objects (4 modified, 0 added, 0 removed)
Details
- Page properties
-
- Parent
-
... ... @@ -1,1 +1,1 @@ 1 -WebHome 1 +xwiki:XWiki.Macros.WebHome
- XWiki.WikiMacroClass[0]
-
- Macro code
-
... ... @@ -1,4 +1,6 @@ 1 -{{velocity}} 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}} 2 2 #macro (executeMacro) 3 3 #set ($discard = $xwiki.ssx.use('XWiki.Macros.Status')) 4 4 #set ($color = $escapetool.xml($xcontext.macro.params.colour)) ... ... @@ -22,9 +22,11 @@ 22 22 ## We need to check if there is a valid license because the macro is registered even if the user doesn't have view right 23 23 ## on the macro definition page. See XWIKI-14828: Rendering macros defined in wiki pages are available to users that 24 24 ## don't have view right on those pages. 25 -#if ($services. promacrolicensing.hasLicensureForEntity($xcontext.macro.doc.documentReference))27 +#if ($services.licensing.licensor.hasLicensureForEntity($xcontext.macro.doc.documentReference)) 26 26 #executeMacro 27 27 #else 28 - {{missingLicenseMessage extensionName="proMacros.extension.name"/}} 30 + {{error}} 31 + #getMissingLicenseMessage('proMacros.extension.name') 32 + {{/error}} 29 29 #end 30 30 {{/velocity}} - Macro description
-
... ... @@ -1,0 +1,1 @@ 1 +Insert a colored label in the text to highlight the status of an item.
- XWiki.WikiMacroParameterClass[0]
-
- Parameter description
-
... ... @@ -1,0 +1,1 @@ 1 +The text of the status. If not specified, the color name will be displayed (e.g.:"Grey").
- XWiki.WikiMacroParameterClass[1]
-
- Parameter description
-
... ... @@ -1,0 +1,1 @@ 1 +The color of the status(text color and background color). The following colors are available: "Blue", "Green", "Grey", "Purple", "Red" and "Yellow". Default: "Grey".
- XWiki.WikiMacroParameterClass[2]
-
- Parameter description
-
... ... @@ -1,0 +1,1 @@ 1 +The aspect of the status: either white text on dark color background or dark color text on light color background. This is a boolean parameter so it should be filled with "true" or "false". Default: "false".