changes.mady.by.user Robert Reiner
Saved on 13. Jan 2016
The Code Block Macro makes it easy to render code snippets beautifully. The Code Block Placeholder Macro version provided by the projectdoc Toolbox connects the configuration to properties defined by the document or space.
The plain code in the macro body:
The macro is rendered as follows:
<pluginArtifacts> <pluginArtifact> <groupId>de.smartics.atlassian.confluence</groupId> <artifactId>smartics-projectdoc-confluence</artifactId> <version>1.10</version> </pluginArtifact> </pluginArtifacts>
The code with placeholders in the macro body:
<pluginArtifacts> <pluginArtifact> <groupId>${project.groupId}</groupId> <artifactId>${project.artifactId}</artifactId> <version>${project.version}</version> </pluginArtifact> </pluginArtifacts>
The properties may be either defined in the page as document properties or on the homepage of the space as space properties. In either case the fragment in the table enclosed in the Document Properties Marker Macro looks like this:
This allows to change the values in a central place.