Content Macro

Last modified by Admin on 2017/10/05 15:19

cogAllows entering content in any of the supported Syntaxes
TypeJAR
Developed by

XWiki Development Team

Rating
Rate!
0 Votes
LicenseGNU Lesser General Public License 2.1
Bundled With

XWiki Enterprise, XWiki Enterprise Manager

Compatibility

XWiki 4.2M3+

Installable with the Extension Manager

Description

Allows to enter content in any of the supported Syntaxes and thus allows to have content written in various syntaxes.

Usage

{{content syntax="<syntax id>"}}
...content written in <syntax id> syntax...
{{/content}}

where:

  • syntax id: The technical id of the syntax in which the content is written. For example: xwiki/2.0, xwiki/2.1, confluence/1.0, html/4.01, xhtml/1.0, markdown/1.0, etc. Check the "Input" column of the supported Syntax table for the full list of supported syntaxes.

Example

This is in **bold**

{{content syntax="confluence/1.0"}}
This is *bold* too!
{{/content}}

Results in:

contentmacro.png

Prerequisites & Installation Instructions

We recommend using the Extension Manager to install this extension (Make sure that the text "Installable with the Extension Manager" is displayed at the top right location on this page to know if this extension can be installed with the Extension Manager). Note that installing Extensions when being offline is currently not supported and you'd need to use some complex manual method.

You can also use the manual method which involves dropping the JAR file and all its dependencies into the WEB-INF/lib folder and restarting XWiki.

Dependencies

Dependencies for this extension (org.xwiki.rendering:xwiki-rendering-macro-content 9.8.1):

Tags:
Created by Vincent Massol on 2012/08/27 18:37
    

Get Connected