Découvrez les nouveautés de cette version : Fonctionnalités, améliorations et évolutions vous attendent ! 👉 Cliquez ici pour en savoir plus

Modifications pour le document Team

Modifié par superadmin le 21/07/2025 - 08:55

Depuis la version 3.1
modifié par Admin
sur 01/02/2025 - 11:40
Commentaire de modification : Install extension [com.xwiki.pro:xwiki-pro-macros-ui/1.26.1]
À la version 7.1
modifié par superadmin
sur 25/05/2025 - 00:00
Commentaire de modification : Install extension [com.xwiki.pro:xwiki-pro-macros-ui/1.26.20]

Résumé

Détails

Propriétés de la Page
Auteur du document
... ... @@ -1,1 +1,1 @@
1 -XWiki.admin
1 +XWiki.superadmin
XWiki.StyleSheetExtension[0]
Code
... ... @@ -31,6 +31,7 @@
31 31   object-fit: cover;
32 32   margin: 0.1ex;
33 33   box-sizing: content-box;
34 + height: revert-layer;
34 34  }
35 35  
36 36  .xwikiteam a:hover .xwikiteam-avatar {
XWiki.WikiMacroClass[0]
Code de la macro
... ... @@ -29,7 +29,7 @@
29 29   #else
30 30   #set($escapedSize = $escapetool.xml($size))
31 31   <img
32 - class='xwikiteam-avatar fixedSize-$escapedSize'
32 + class='xwikiteam-avatar '
33 33   src='$escapetool.xml($return.url)'
34 34   alt='$escapedDisplayUser'
35 35   title='$escapedDisplayUser'
... ... @@ -58,12 +58,13 @@
58 58   #set($discard = $xwiki.ssx.use('xwiki:XWiki.Macros.Team'))
59 59   #set($discard = $xwiki.jsx.use('xwiki:XWiki.Macros.Team'))
60 60   #set($pictureList = {})
61 - #set($tag = $wikimacro.parameters.tag)
62 - #set($users = $wikimacro.parameters.users)
61 + #set($tag = $xcontext.macro.params.tag)
63 63   #set($size = $wikimacro.parameters.size)
64 64   #set($scope = $wikimacro.parameters.scope)
65 - #set($letterAvatarBgColor = $wikimacro.parameters.letterAvatarBgColor)
66 - #set($letterAvatarFontColor = $wikimacro.parameters.letterAvatarFontColor)
64 + ## I need the raw value to avoid XWIKI-18965
65 + #set($users = $xcontext.macro.params.users)
66 + #set($letterAvatarBgColor = $xcontext.macro.params.letterAvatarBgColor)
67 + #set($letterAvatarFontColor = $xcontext.macro.params.letterAvatarFontColor)
67 67   #set($requireExternalAuth = $wikimacro.parameters.requireExternalAuth)
68 68   #set($showUsernames = $wikimacro.parameters.showUsernames)
69 69   #set($disableTools = $wikimacro.parameters.disableTools)
... ... @@ -187,16 +187,6 @@
187 187   #set ($clean = true)
188 188   #end
189 189   {{html clean="$clean"}}
190 - ## Starting with XWiki 13.10.4 and 14.1, img tags have a 'height: auto' style set, see XWIKI-19432: Image not to scale
191 - ## on mobile. Since this breaks the macro fixed size feature, a specific size is added.
192 - #set ($escapedSize = $escapetool.xml($size))
193 - <$elem>
194 - <style>
195 - .fixedSize-$escapedSize {
196 - height: ${escapedSize}px;
197 - }
198 - </style>
199 - </$elem>
200 200   <$elem class="xwikiteam #if(!$showUsernames)xwikiteam-usernames-hidden#end">
201 201   #if ($list.size() > 0)
202 202   <span class="xwikiteam-ul">
... ... @@ -237,7 +237,7 @@
237 237  ## We need to check if there is a valid license because the macro is registered even if the user doesn't have view right
238 238  ## on the macro definition page. See XWIKI-14828: Rendering macros defined in wiki pages are available to users that
239 239  ## don't have view right on those pages.
240 -#if ($services.promacrolicensing.hasLicensureForEntity($xcontext.macro.doc.documentReference))
231 +#if ($services.licensing.licensor.hasLicensureForEntity($xcontext.macro.doc.documentReference))
241 241   #executeMacro
242 242  #else
243 243   {{missingLicenseMessage extensionName="proMacros.extension.name"/}}
Description de la macro
... ... @@ -1,1 +1,0 @@
1 -This macro displays the team members which have a specific tag
XWiki.WikiMacroParameterClass[0]
Description du paramètre
... ... @@ -1,1 +1,0 @@
1 -Tag that users need to have to be shown
Type du paramètre
... ... @@ -1,0 +1,1 @@
1 +com.xwiki.pickers.TagReference
XWiki.WikiMacroParameterClass[2]
Description du paramètre
... ... @@ -1,1 +1,0 @@
1 -The size of a user icon
XWiki.WikiMacroParameterClass[3]
Description du paramètre
... ... @@ -1,1 +1,0 @@
1 -If true, the user should be searched in LDAP or OAuth
XWiki.WikiMacroParameterClass[4]
Description du paramètre
... ... @@ -1,1 +1,0 @@
1 -The name of users should be displayed under their avatars
XWiki.WikiMacroParameterClass[5]
Description du paramètre
... ... @@ -1,1 +1,0 @@
1 -The background color of the letter avatars
Type du paramètre
... ... @@ -1,0 +1,1 @@
1 +java.awt.Color
XWiki.WikiMacroParameterClass[6]
Description du paramètre
... ... @@ -1,1 +1,0 @@
1 -The font color of the letter avatars
Type du paramètre
... ... @@ -1,0 +1,1 @@
1 +java.awt.Color
XWiki.WikiMacroParameterClass[7]
Description du paramètre
... ... @@ -1,1 +1,0 @@
1 -Don't use letter avatars and display a default avatar instead
XWiki.WikiMacroParameterClass[8]
Description du paramètre
... ... @@ -1,1 +1,0 @@
1 -The maximum number of users to show
XWiki.WikiMacroParameterClass[9]
Description du paramètre
... ... @@ -1,1 +1,0 @@
1 -In which wiki to find users (global: in the main wiki. local: in the current wiki. both: in both the main wiki and the local wiki. auto: find out from the wiki settings). Has no effect in the main wiki.
Type du paramètre
... ... @@ -1,0 +1,1 @@
1 +com.xwiki.pickers.teams.Scope
XWiki.WikiMacroParameterClass[10]
Description du paramètre
... ... @@ -1,1 +1,0 @@
1 -Comma-separated list of users to show.
Type du paramètre
... ... @@ -1,0 +1,1 @@
1 +com.xwiki.pickers.UsersReference