It is easy to provide pages with lots of dynamic content using a variety of techniques including SQL for Confluence, Reporting Add-on, Scaffolding Add-on, and other add-ons. Pages can always reflect the latest information ! However, in some cases, it would be nice to have a snapshot of the page and its dynamic content at various points in time. This is possible with just a little bit of additional work and the run macro.
Run macro - used to capture the content in an attachment
In order to provide a better user experience for viewing the archived data, the following add-ons can be used
On the main page, add the run macro surrounding the content that needs to be archived similar to the following
Create another page with the name equal to the original page suffixed by " - archive", suggest making it a child page of the main page. A simple alternative is to just use the attachments macro on this page - not as nice, but provides access to the data as straight html.
How to archive charts
Charts can be handled by saving each chart as an attachment by adding some parameters to the chart macro similar to the following:
4. Create a user macro to display the archived data in a nice way (optional)