How to display a banner at the top of pages?

Last modified by Vincent Massol on 2020/09/30

This is useful to warn users that the wiki will go in maintenance mode in some near future for example.

Recommended Solution

Use the "After Header" UI Extension Point.

For example:


Old Solution

  • Add a titlevars.vm field to the XWikiSkins class (type textarea, Text editor)
  • Customize the current skin (from the "Administration>Presentation" page)
  • Copy the content of http://localhost:8080/xwiki/templates/titlevars.vm to the titlevars.vm textarea field.
  • At the end of this field, add for example:
    #error("This wiki will be down on 29th of October 2011, 10AM GMT+1.")

Get Connected