...
Document Properties Marker | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
...
Section | ||||
---|---|---|---|---|
| ||||
This tip shows how to alter the rendering of transluded content by the example of the Display Table Macro based on Remote Controls. The Remote Controls feature was introduced for the projectdoc Toolbox for Confluence version 4.5. |
Section | ||
---|---|---|
| ||
...
Section | ||
---|---|---|
| ||
Suppose you have pages with references you want to collect and render in a display table. For this example we use the documentation Online Manual for the projectdoc Toolbox and want to render the name, short description, and referenced documents with the Display Table Macro. These are the documents we want to transclude from: |
...
Section | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||
To grab information from these three documents, two requirements must be met:
Let's see how we meet this requirements!
|
...
Section | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| |||||||||||||||
Using a Display Table Macro to render the name, short description and documents property has per default the following result: We use The problem is that the documents are rendered differently in the three locations. In this view we need to have a unified format. The unified format should only render the name and short description. We also want – since the value is rendered in a table cell – the list of references be rendered as a definition list and not as tables. We use the Remote Control feature and are able to control all three transcluded macros by the use of the identifier We set the Remote Controls Parameter to
What does this mean? references is the identifier of the macros we want to remote control. We set the Select parameter to Name, Short Description. Not only do we want to have each cell render the same properties, but also a definition list is only rendered in case there are only two properties selected. The second control is adjusting the Render Mode to definition, which will render the table as a definition list. So this is the result: In case you want to collapse the
Note the backslashes ( We also need to translate the name of the template
So this is the result (only the first row shown): |
Section | ||
---|---|---|
| ||
We have shown how the result of a Display Table Macro can be rendered more concise. By the use of Remote Controls we turned tables in different format into a definition list. By the use of a Select Template we collapsed the first two columns into one. The focus of this tip is on using Remote Controls. It requires some configuration on the part of the transcluded content. The use of transclusion should be already considered when designing the information architecture. But – if the user has write access to all transcluded content – we have shown that adjusting the content is not too difficult. |
Section | ||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||||||||||
|
...
Section | |||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| |||||||||||||||||||||||||
|
Piwik Set Multiple Custom Variables | ||||||||
---|---|---|---|---|---|---|---|---|
|
...