Skip to end of banner
Go to start of banner

Augment examples

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 5 Next »

 

Adding a row number

Description

The simplest example is adding a row number to the data. It can be added in any column position.

Example image
Macro browser
Wiki
{csv:columns=,Product, Sales|augments=%#%}
Product, Sales
ABC, 1000
XYZ, 2000
{csv}

Persistent row number

This row number is added to the html table produced by the macro just as if it was in the original CSV data. This will show in an exported page. This is different than selecting Auto number each row for the table which is a browser display option only.

 

 

Adding links and images

Description

This example shows how to add wiki links and images to csv data produced by other processes. This highlights the real advantages of augments especially for data produced by other processes. In this example, the data is produced by the Confluence Command Line Interface (CLI) using --action getSpacePermissionList

Example image
Macro browser
Wiki
{csv:output=wiki
  |columns=Space, Id Type, Id, viewspace
  |augments=[%Space%:],,,!images^%viewspace%.png!
  |headingAugments=,,,View
  |columnTypes=S,S,S,E}
...
{csv}

 

 

  • No labels