Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Section
titleReplacing Page Properties

The first use case is about metadata. How can an author provide metadata on a Confluence page? The answer is properties!

The Document Properties Marker Macro is similar to the Page Properties Macro. The macro expects a table with property keys and values. Different to the Page Properties Macro there is a third column for property controls.

A document property requires a name (first column). It may or may not have a value and it may or may not have a control.

While the Page Properties Report Macro renders the information provided by the Page Properties Macro, the projectdoc Toolbox provides a collection of macros to fetch this information. The one that comes close to the Page Properties Report Macro is the Display Table Macro.


Here is a selection of macros that render document properties.

Tour
TitleShort DescriptionTypical Usage
Display Table Macro
Run a query and render properties as columns of a table.
Display List Macro
Like the Display Table Macro, but hits are rendered as a HTML list.
Display List Template Macro
Like the Display List Macro, but with more control over properties to render.
Display Document Property Macro
Renders a single property value from a single document.
Display Document Properties Macro
Renders a collection of property values from a single document.


Note Box

The document properties specified on a space homepage are space properties. They can also be accessed with the Display Space Property Macro.

You may know that page properties are accessible via a REST API (rest/masterdetail/1.0/detailssummary/lines). Currently this API only provides read access. The free Web API Extension for the projectdoc Toolbox provides read and write access to document properties.

Tip Box
titleCompare Features

Page Properties and Document Propertiesprovides an overview over the features provided by the Confluence macros and projectdoc Toolbox macros.

More details with screenshots on Working with Properties.

Section
titleReplacing Excerpt Macro

The second use case is about reusing content from one page from a number of other pages.

The Excerpt Macro allows to define content on a page for reuse. The content can then by displayed in another page. The projectdoc Toolbox calls this feature transclusion. The content is defined with the Section Macro (if it has a title and a body) or the Content Marker Macro (for any other part of a page that needs to be transcluded).

Note Box

A cool feature of sections is that they keep track of their heading levels! You may transclude a section from anywhere into another section and the level of the section headings is automatically adjusted!

While the excerpt macro may only provide one content on a page for reuse, the projectdoc macros may be used any number of times and provides some enhanced transclusion features.

To render the content on another page, Confluence provides the Excerpt Include Macro. The projectdoc provides the Transclusion Macro to do this. But transclusion (especially with sections) is provided by a number of other macros.

Tour
TitleShort DescriptionTypical Usage
Transclusion Macro
Transclude (multiple) content from one document.
Transclude Documents Macro
Specify a query and transclude content from all documents in the result set!
Information Systems Extension
Provides a collection of macros to transclude content from remote servers.
Tip Box
titleCompare Features

Excerpt and Transclusion provides an overview over the features provided by the Confluence macros and projectdoc Toolbox macros.

More details with screenshots on Working with Transclusions.

Section
titleConclusion

This article should show that using the projectdoc Toolbox in only two of its use cases, is not too different than using macros already on-board with Confluence.

We do not want to indicate that the Confluence macros are bad and should not be used. In the contrary: If these macros support your use cases they are easy to use and this should be the your way to go. But if you miss some features to make your documentation work more fun, check out the projectdoc Toolbox!

...