Changes for page Panel Macro

Last modified by Frank Fock on 2025/04/04 21:18

From version 2.1
edited by Frank Fock
on 2024/05/23 17:17
Change comment: Install extension [com.xwiki.pro:xwiki-pro-macros/1.17.3]
To version 1.1
edited by Frank Fock
on 2024/02/07 18:16
Change comment: Install extension [com.xwiki.pro:xwiki-pro-macros/1.14.3]

Summary

Details

XWiki.StyleSheetExtension[0]
Code
... ... @@ -4,5 +4,5 @@
4 4  }
5 5  .macro-border {
6 6   margin-bottom: 10px;
7 - overflow: auto;
7 + overflow: hidden;
8 8  }
XWiki.WikiMacroClass[0]
Macro code
... ... @@ -84,6 +84,8 @@
84 84  #end
85 85  {{/velocity}}
86 86  
87 +{{include reference="Licenses.Code.VelocityMacros"/}}
88 +
87 87  {{velocity}}
88 88  ## We need to check if there is a valid license because the macro is registered even if the user doesn't have view right
89 89  ## on the macro definition page. See XWIKI-14828: Rendering macros defined in wiki pages are available to users that
... ... @@ -91,6 +91,8 @@
91 91  #if ($services.licensing.licensor.hasLicensureForEntity($xcontext.macro.doc.documentReference))
92 92   #executeMacro
93 93  #else
94 - {{missingLicenseMessage extensionName="proMacros.extension.name"/}}
96 + {{error}}
97 + #getMissingLicenseMessage('proMacros.extension.name')
98 + {{/error}}
95 95  #end
96 96  {{/velocity}}