This user macro will display users in a specific group in a cloud-like format, like this:
## Macro Name: user-cloud ## Macro title: User Cloud ## Description: Displays a list of users in a cloud-like format ## Category: Confluence content ## Body processing: Unrendered ## @param Group:title=Group|type=string|required=true|desc=Group name ## @param MinWidth:title=Minimum Width|type=string|required=true|desc=Minimum width in CSS units (e.g. px)|default=120px ## @param PicSize:title=Picture Size|type=string|required=true|desc=Picture height in CSS units (e.g. px)|default=60px ## @param Border:title=Border Colour|type=string|required=false|desc=Border Colour ## @param Fill:title=Fill Colour|type=string|required=false|desc=Fill Colour #foreach($user in $userAccessor.getMembers($userAccessor.getGroup($paramGroup))) <span style="background: $paramFill; min-width: $paramMinWidth; text-align: center; display: inline-block; border: 1px solid $paramBorder; padding: 6px; margin: 8px; border-radius: 4px"> <img style="height: $paramPicSize; border-radius: 3px" src="$userAccessor.getUserProfilePicture($user).getUriReference()"><br/> <a href="/display/~$user.getName()">$user.getFullName()</a> </span> #end
Love this! Images don't work in version 5.8 of confluence, but we should be updated to the latest version by the end of the month, so I'll just keep this one waiting in the wings :)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.