Powered by Zoomin Software. For more details please contactZoomin

Administrate MarkLogic Server

Example: Modifying the Banner Text

  • Last Updated: April 15, 2026
  • 1 minute read
    • MarkLogic Server
    • Version 12.0
    • Documentation

Use the following script to change the text in the banner that appears at the top of each built-in MarkLogic application page. Run the script in Query Console against the App-Services database.

(:This set the UI banner for the qconsole and admin GUI:)
xquery version "1.0-ml";
import module namespace admin = "http://marklogic.com/xdmp/admin" at "/MarkLogic/admin.xqy";

let $banner-options := map:map()
  => map:with("active", fn:true())
  => map:with("label", "Welcome to the PRODUCTION STAGING cluster")
  => map:with("headerColor", "#33CC99")
  => map:with("headerTextColor", "#000000")
  => map:with("message", "This cluster will be unavailable on odd Tuesdays of even months.")
return admin:ui-set-banner($banner-options)

TitleResults for “How to create a CRG?”Also Available inAlert