Changes for page Profile Picture Macro

Last modified by Frank Fock on 2026/04/03 11:46

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