Box Macro

The Box macro renders wiki content in a graphical box which can contain a title and an image.


{{box title="<title>" image="<image>" cssClass="<cssClass>" /}}


NameOptionalAllowed valuesDescriptionDefault value
titleYesA string: raw text or "xwiki/2.0" syntaxThe title displayed in the message boxNone
imageYesA string representing an absolute URLThe image to display in the message boxNone
cssClassYesA stringThe CSS sheet to use for rendering the boxNone


{{box title="Content" image="" cssClass="floatingBox"}}
* Overview
* What's New

will display


The custom CSS can be included in a StyleSheetExtension object attached to the page. For the above example the CSS rules for the ".floatingBox" class are:

.floatingBox img{
width: 50px;
width: 500px;

Related Pages

Search this space


Most popular tags

Failed to execute the [groovy] macro
  1. access rights
  2. activity stream
  3. annotation
  4. attachment
  5. comment
  6. Document Tree Macro
  7. export
  8. Extension Manager
  9. Flamingo skin
  10. global user
  11. Groovy event listener
  12. group
  13. nested page
  14. search
  15. skin
  16. syntax
  17. user
  18. user profile
  19. velocity macros
  20. wiki
  21. wysiwyg
  22. XWiki Applications
  23. xwikiattachment_archive table
  24. xwikiattachment table
  25. xwikiattrecyclebin table
  26. xwikiproperties table

[Display all tags from this space]