Modifications pour le document Content Report Table Macro
Modifié par superadmin le 21/07/2025 - 08:59
Résumé
-
Objets (3 modifications, 0 ajouts, 0 suppressions)
Détails
- XWiki.WikiMacroClass[0]
-
- Code de la macro
-
... ... @@ -1,8 +1,9 @@ 1 1 {{velocity output="false"}} 2 2 #macro (executeMacro) 3 3 ## Used parameters : 4 - #set($labels = $wikimacro.parameters.get('labels')) 5 - #set($spaces = $wikimacro.parameters.get('spaces')) 4 + ## TODO When https://jira.xwiki.org/browse/XWIKI-18965 is fixed move back to the newer $wikimacro API 5 + #set($labels = $xcontext.macro.params.labels) 6 + #set($spaces = $xcontext.macro.params.spaces) 6 6 #set($maxResults = $wikimacro.parameters.get('maxResults')) 7 7 #if("$!maxResults" == '') 8 8 #set($maxResults = 20) ... ... @@ -22,7 +22,7 @@ 22 22 }) 23 23 #if("$!spaces" != '') 24 24 #set ($statement = $statement + ' and (') 25 - #foreach($space in $spaces.split('(?<!\\\\), ')) 26 + #foreach($space in $spaces.split('(?<!\\\\), ?')) 26 26 #if($foreach.index > 0) 27 27 #set($statement = $statement + ' or ') 28 28 #end ... ... @@ -50,7 +50,7 @@ 50 50 ## We need to check if there is a valid license because the macro is registered even if the user doesn't have view right 51 51 ## on the macro definition page. See XWIKI-14828: Rendering macros defined in wiki pages are available to users that 52 52 ## don't have view right on those pages. 53 -#if ($services.licensing. licensor.hasLicensureForEntity($xcontext.macro.doc.documentReference))54 +#if ($services.promacrolicensing.hasLicensureForEntity($xcontext.macro.doc.documentReference)) 54 54 #executeMacro 55 55 #else 56 56 {{missingLicenseMessage extensionName="proMacros.extension.name"/}} - Default categories
-
... ... @@ -1,0 +1,1 @@ 1 +Content
- XWiki.WikiMacroParameterClass[0]
-
- Type du paramètre
-
... ... @@ -1,0 +1,1 @@ 1 +com.xwiki.pickers.TagsReference
- XWiki.WikiMacroParameterClass[1]
-
- Type du paramètre
-
... ... @@ -1,0 +1,1 @@ 1 +com.xwiki.pickers.SuggestSpacesReference