|
All content extensions are provided by macros in Confluence. Some macros are built in to Confluence. Other macros are supplied by add-ons.
Before looking at add-ons, let's take a quick look at macros in general. There are two ways to add a macro to your page:
The following code uses the {include} macro to insert the text from the page called 'My Page'.
Let's assume 'My Page' contains just two lines:
The resulting page will look like this:
|
A number of macros are shipped with your Confluence installation by default. See Working with Macros. Below we describe some add-ons that provide additional useful macros for Confluence:
The Composition add-on provides macros which allow finer control over the layout (composition) of a page. Using these macros, you can:
Commercial or free: Commercial.
Use the {cloak} macro to outline a text block.
Usage: The following code creates a text block named 'SeeAlso' for the outlined 'See Also' section within a page. The text block with id='SeeAlso' will be hidden after the 'See Also' title:
{composition-setup}
h2. {toggle-cloak:id=SeeAlso} See Also
{cloak:id=SeeAlso}
h3. Working With Macros:
[Link 1]
[Link 2]
h3. Working with Rich Text Editor:
[Link 3]
[Link 4]
{cloak}
|
Alternatives: You can also use the {expand} macro available in Confluence by default, but this macro can outline only text of the same level and cannot hide headings within the text. The {expand} macro does not require parameters and just hides the text placed between the {expand} tags.
Note: If you need to outline a text block containing nested headings, consider the text structure. Maybe the block is too big. You could create a child page from this block to decompose the whole text. Then you can include and outline the text block using the {include} macro within {expand}.
Use the {deck} and {card} macros to separate content between tabs on the same page.
Usage: The following code creates two tabs with client information:
{composition-setup}
h1. Client Name
{deck:id=ClientName}
{card:label=Basic}
Client Company Name: Company
[Client Web Site|http://url.com]
Our projects: [Project1|Project1 Home]
{card}
{card:label=Contacts}
Company CEO: John Brown, e_mail: brown@company.com
{card}
{deck}
|
The tabs on a page will look like this:

Use the {float} macro to make your text flow around images or diagrams.
Usage: The following code demostrates how a picture can be surrounded by the description, as often shown in printed publications:
{composition-setup}
{float:left}
!shakespeare.jpg!
{float}
William Shakespeare (baptised 26 April 1564; died 23 April 1616) was an English poet and playwright, widely regarded as the greatest writer in the English language and the world's pre-eminent dramatist.
...
|
The page will look like this:

For more macros, see the Composition add-on page.
The Scaffolding add-on provides macros for creating 'permanent templates' and editable forms. You can create sophisticated page templates in order to add content easily and fast. Scaffolding templates are suitable for dynamically-filled data and allow people to create pages by completing form fields and selecting values from drop-down lists.
The Scaffolding templates are useful for creating pages with a well-determined structure, such as:
Commercial or free: Commercial.
Example: The following Scaffolding template creates a description of an API method:
h3. Method Name
{text-data:methodName|required=true}{text-data}
h3. Method Description
{text-data:methodDescription|type=area|required=true|width=100%}description{text-data}
h3. Parameters
{table-data:parameters}
|| Name || Type || Mandatory || Description ||
| {text-data:paramName}ParamName{text-data} | {list-data:paramType}{list-option:Number}Number{list-option}{list-option:String}String{list-option}{list-option:DateTime}DateTime{list-option}{list-option:MACaddress}MACaddress{list-option}{list-option:IPaddress}IPaddress{list-option}{list-data} | {list-data:paramMandatory}{list-option:Required}Required{list-option}{list-option:Optional}Optional{list-option}{list-data} | {text-data:paramDescription|type=area}param description{text-data} |
{table-data}
h3. Return Value
The returned value is an XML structure of the following format:
\{code:xml\}
\{code\}
Where elements mean:
{table-data:returnValues}
|| Name || Type || Description ||
| {text-data:paramName}ParamName{text-data} | {list-data:paramType}{list-option:Number}Number{list-option}{list-option:String}String{list-option}{list-option:DateTime}DateTime{list-option}{list-option:MACaddress}MACaddress{list-option}{list-option:IPaddress}IPaddress{list-option}{list-data} | {text-data:paramDescription}param description{text-data} |
{table-data}
h3. Remarks
{text-data:remarks}remarks{text-data}
h3. See Also
|
This template will look like this:

For more information on how to create templates in Confluence, see Adding a Template.
Alternatives: Confluence includes built-in templates which as useful for static data and simple text. For more information, see Working with Templates.
Notes: The Scaffolding (and any) template changes will affect only new pages created from the modifed template. In order to change the existing pages, you need to edit each individual page and add or modify the formatting manually.
For more information on Scaffolding, see the Scaffolding add-on page.
Scroll Versions adds functionality for sophisticated version management, enhanced content reuse, support for context-sensitive help, permalinks, and duplicate page titles. You can set up and manage concurrent versions of your documentation in a single space. Multiple versions of software, different product variants, and even multiple translations of documentation can be managed. Changes to pages are scheduled for a specified version and then published all at once. See the Scroll Versions documentation for an overview of the key features.
Commercial or free: Commercial.
Video: Scroll Versions - Version Management for Confluence (4:20)
The Arsenale Lockpoint: Attachments Checkout adds check-out/check-in functionality for Confluence attachments.
Commercial or free: Free for up to 50 users, then commercial.
詳細情報: