Changes for page Profile Picture Macro
Last modified by Frank Fock on 2026/04/03 11:46
From 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]
To version 5.1
edited by Frank Fock
on 2025/04/29 19:14
on 2025/04/29 19:14
Change comment:
Migrated property [featureMandatory] from class [XWiki.WikiMacroParameterClass]
Summary
-
Objects (2 modified, 1 added, 0 removed)
Details
- XWiki.WikiMacroClass[0]
-
- Macro code
-
... ... @@ -1,14 +3,11 @@ 1 -{{include reference="Licenses.Code.VelocityMacros"/}} 2 - 3 3 {{velocity}}## 4 4 ## We need to check if there is a valid license because the macro is registered even if the user doesn't have view right 5 5 ## on the macro definition page. See XWIKI-14828: Rendering macros defined in wiki pages are available to users that 6 6 ## don't have view right on those pages. 7 -#if ($services.licensing.licensor.hasLicensureForEntity($xcontext.macro.doc.documentReference)) 8 - {{team users="$services.rendering.escape($wikimacro.parameters.User, $xwiki.currentContentSyntaxId)" /}} 5 +#if ($services.promacrolicensing.hasLicensureForEntity($xcontext.macro.doc.documentReference)) 6 + {{team users="$services.rendering.escape($wikimacro.parameters.User, $xwiki.currentContentSyntaxId)" 7 + size="$services.rendering.escape($wikimacro.parameters.size, $xwiki.currentContentSyntaxId)" /}} 9 9 #else 10 - {{error}} 11 - #getMissingLicenseMessage('proMacros.extension.name') 12 - {{/error}} 9 + {{missingLicenseMessage extensionName="proMacros.extension.name"/}} 13 13 #end 14 14 {{/velocity}} - Default categories
-
... ... @@ -1,0 +1,1 @@ 1 +Content - Macro description
-
... ... @@ -1,1 +1,0 @@ 1 -Confluence Profile Picture macro
- XWiki.WikiMacroParameterClass[0]
-
- Parameter description
-
... ... @@ -1,1 +1,0 @@ 1 -The user to show the picture profile of. - Parameter type
-
... ... @@ -1,0 +1,1 @@ 1 +org.xwiki.user.UserReference
- XWiki.WikiMacroParameterClass[1]
-
- Parameter default value
-
... ... @@ -1,0 +1,1 @@ 1 +60 - Parameter mandatory
-
... ... @@ -1,0 +1,1 @@ 1 +No - Parameter name
-
... ... @@ -1,0 +1,1 @@ 1 +size