Skip to main content

Administrating MarkLogic Server

Example: Modifying the Banner Text

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)