Shows how to use the Wiki Link Macro based on Remote Controls to alternate between two different views on a single document.
Remote controls allow to override macro parameters with HTTP request parameters. This way a view on a document can be altered. For instance a release notes document could show changes in a condensed form. By providing a link to override the parameters of the macro displaying the changes, the view could expand the information on each change. Since version 4.5 of the projectdoc Toolbox for Confluence the Wiki Link Macro allows to toggle between the two states.
This tip shows how to configure the Display Table Macro and Wiki Link Macro to create two views on a document.
Use Case
For this tip we want to show you a live example with a list of macros from the projectdoc Toolbox. We show them in a short overview and in an expanded version.
Configuration Display Table
To make the Display Table Macro ready to be remote controlled, the Identifier parameter needs to be set.
You can also use the Identifier Classes parameter in case you need to control a selection of macros in a single action.
Configure your query with the Select, Where and Sort By parameter according to your use case. For our example we just select the macro documents tagged with Remote Controller
of this space.
Live Example
Here is the live example showing the macros provided by the projectdoc Toolbox.