Modifications pour le document Expand
Modifié par superadmin le 21/07/2025 - 08:55
Résumé
-
Propriétés de la Page (1 modifications, 0 ajouts, 0 suppressions)
-
Objets (1 modifications, 0 ajouts, 0 suppressions)
Détails
- Propriétés de la Page
-
- Parent
-
... ... @@ -1,1 +1,1 @@ 1 - Confluence.Macros1 +WebHome
- XWiki.WikiMacroClass[0]
-
- Code de la macro
-
... ... @@ -1,8 +1,7 @@ 1 1 {{velocity output="false"}} 2 2 #macro (executeMacro) 3 3 $xwiki.ssx.use('Confluence.Macros.Expand') 4 - #set ($opened = $xcontext.action == 'edit') 5 - 4 + #set ($opened = $xcontext.action == 'edit' || $request.getParameter('format') == "html-print") 6 6 {{html clean="false" wiki="true"}} 7 7 <details class="confluence-expand-macro panel panel-default" #if ($opened)open#end> 8 8 <summary> ... ... @@ -25,7 +25,7 @@ 25 25 ## We need to check if there is a valid license because the macro is registered even if the user doesn't have view right 26 26 ## on the macro definition page. See XWIKI-14828: Rendering macros defined in wiki pages are available to users that 27 27 ## don't have view right on those pages. 28 -#if ($services.licensing. licensor.hasLicensureForEntity($xcontext.macro.doc.documentReference))27 +#if ($services.promacrolicensing.hasLicensureForEntity($xcontext.macro.doc.documentReference)) 29 29 #executeMacro 30 30 #else 31 31 {{missingLicenseMessage extensionName="proMacros.extension.name"/}}