Hi, On Sep 3, 2013, at 12:06 PM, Valdis Vītoliņš <[email protected]> wrote:
I'm migrating documents to XWiki/2.1 syntax and wonder, what would be the precise analogue for #message("message") macro, which produces following HTML:
<div class="plainmessage">message</div>
I found only similar ones:
quote
which produces <blockquote>quote</blockquote> (IMHO works only for single paragraph even with {{{groups}}})
and {{info}}info{{/info}}
which produces <div class="box infomessage">info</div>
Can I extend XWiki somehow that I can use {{message}}message{{/message}} with appropriate HTML output?
You should use the Box macro: http://extensions.xwiki.org/xwiki/bin/view/Extension/Box+Macro Or one of the macros: * http://extensions.xwiki.org/xwiki/bin/view/Extension/Info+Macro * http://extensions.xwiki.org/xwiki/bin/view/Extension/Error+Macro * http://extensions.xwiki.org/xwiki/bin/view/Extension/Warning+Macro * http://extensions.xwiki.org/xwiki/bin/view/Extension/Success+Macro Thanks -Vincent