Content Macro

The Content macro allows you to enter content in any of the supported syntaxes: xwiki/2.0, xwiki/2.1, confluence/1.0, jspwiki/1.0, creole/1.0, mediawiki/1.0, twiki/1.0, xhtml/1.0, html/4.01, plain/1.0, docbook/4.4, markdown/1.0, markdown/1.1, apt/1.0

The list of supported syntaxes can be configured via the "WEB-INF/xwiki.cfg" file by editing the xwiki.rendering.syntaxes parameter. The default value is xwiki/2.0, xwiki/2.1.

Usage

{{content syntax="<syntax>"}}
// Content in the chosen syntax
{{/content}}

Parameters

NameOptionalAllowed valuesDescriptionDefault value
syntaxNoxwiki/2.0, xwiki/2.1, confluence/1.0, jspwiki/1.0, creole/1.0, mediawiki/1.0, twiki/1.0, xhtml/1.0, html/4.01, plain/1.0, docbook/4.4, markdown/1.0, markdown/1.1, apt/1.0The technical id of the syntax in which the content is writtenNone

Examples

xwiki/2.0 syntax

{{content syntax="xwiki/2.0"}}
[[This is an "xwiki/2.0" link>>xwiki:Sandbox.WebHome#HHeadings]]
{{/content}}

will display

xwiki/2.1 syntax

{{content syntax="xwiki/2.1"}}
[[This is an "xwiki/2.1" link>>xwiki:Sandbox.WebHome||anchor="HHeadings]]
{{/content}}

will display 

 

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]