Page tree

Shows watermark on the page

See the message on bottom right saying "All content on this page is confidential"

This is shown using this macro

All content on this page is confidential


Note that we use 

$generalUtil.escapeXml($paramMessage)

to sanitize the user's input and make macro safer for XSS vulnerabilities



## @param Message:title=Name|type=string|required=true|desc=Watermark message

<style type="text/css">
 .page_watermark {
   position:fixed;
   bottom:55px;
   right:15px;
   opacity:0.5;
   z-index:99;
   color:#FC0202;
   font-weight:bold;
   font-size:larger;
 }
</style>

<div class="page_watermark">$generalUtil.escapeXml($paramMessage)</div>

  • No labels