This Confluence user macro lets users add a configurable pinned banner to any page. One can configure the banner’s type and position (top-center or bottom-center), etc.
The banner also offers the Close button feature to hide it.
## Width
#set($width = "32em")
#if ($parameters["bannerXL"])
#set($width = "42em")
#end
## Icon and background color based on type (default: Info)
#set ($bgColor = "var(--ds-background-accent-blue-subtlest, #E9F2FF)")
#set ($iconUrl = "https://api.iconify.design/mdi/information.svg?color=%230077cc")
#set($type = $parameters["type"])
#set($typeConfig = {
"Error" : {
"iconUrl" : "https://api.iconify.design/mdi/alert-circle.svg?color=%23cc0000",
"bgColor" : "var(--ds-background-accent-red-subtlest, #FFECEB)"
},
"Warning" : {
"iconUrl" : "https://api.iconify.design/mdi/alert.svg?color=%23e67e22",
"bgColor" : "var(--ds-background-accent-yellow-subtlest, #FFF7D6)"
},
"Info" : {
"iconUrl" : "https://api.iconify.design/mdi/information.svg?color=%230077cc",
"bgColor" : "var(--ds-background-accent-blue-subtlest, #E9F2FF)"
},
"Note" : {
"iconUrl" : "https://api.iconify.design/mdi/note.svg?color=%23667eea",
"bgColor" : "var(--ds-background-accent-purple-subtlest, #F3F0FF)"
}
})
#if($typeConfig.containsKey($type))
#set($bgColor = $typeConfig[$type]["bgColor"])
#set($iconUrl = $typeConfig[$type]["iconUrl"])
#else
#set($type = "Info")
#end
## Position
#set($top = "-4.5%")
#set($height = "80em")
#if($parameters["position"] == "bottom-center")
#set($top = "68%")
#set($height = "100em")
#end
<div style="top: $top; right: 28%; height: $height; display: block; visibility: hidden; z-index: 2000;" class="aui-dialog2 aui-layer ap-stats">
<div style="padding: 1.5em 1em 1em 1em; float: right; width: $width; background-color: $bgColor; visibility: visible; height: #if($parameters["bannerXL"])10%#else5%#end; overflow: auto; top: 8%;" class="aui-dialog2">
<div>
#if ($parameters["closeable"])
<span style="float: right; height: 0;" class="aui-dialog2-header-close">
<span class="aui-icon aui-icon-small aui-iconfont-close-dialog">Close</span>
</span>
#end
</div>
<div style="display: table;">
<div style="display: table-cell; width: 7%; vertical-align: top;">
<ac:image ac:width="24" ac:height="24">
<ri:url ri:value="$iconUrl" />
</ac:image>
</div>
<div style="display: table-cell; float: left; margin-right: 2em;">
$parameters["content"]
</div>
</div>
</div>
</div>Space Information macro by space Id
Macro for generating ID in base32 format
Improve default Confluence tables with sorting, filtering, pagination, and CSV export features
Read and display the fixed version of Confluence pages by checking page or ancestor labels
Add a configurable floating panel to a Confluence page
User macro for displaying issues using custom JQL filter
Display and interact with an OpenAPI / Swagger specification directly in Confluence by rendering a fully featured Swagger UI from a provided JSON URL
Based on CQL it shows a table with: Page title, Author, Updated, Status
Generate a list of labels from all spaces leading to corresponding content pages, organized in alphabetical order.
Show an expandable page tree for a selected parent page (defaults to the current page)