Hiding a dynamic table in a collapsible section

Scenario

We want to create a dynamic table of contact details on a Confluence page while also making it collapsible to to initially hide it from the reader.

This is doable by combining Scaffolding macros with the Cloak and Toggle Cloak macros from Composition.


Result


Recipe

Ingredients

Add-ons

Scaffolding, Composition

Platform

Server, Data Center

Level

EASY

Estimated time

10 minutes

Macros

Suppliers

Storage format

Macro structure

You can recreate the example in the editor view:

Steps

  1. Create a Toggle Cloak macro.

  2. Right after the Toggle Cloak macro, type in "Contact Details".

  3. Create a Cloak macro.

  4. Within the Cloak macro, create a Table Data macro.
    Enter "contacts" in the Name field.

  5. Within the Table Data macro, create a table like this:



  6. Fill in the table cells with relevant Text Data and Number Data macros, like this:



    For more information, refer to Creating a dynamic table.

Results

Contact details