Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Section
Column

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
No Format
{csv:columns=,Product, Sales|augments=%#%}
Product, Sales
ABC, 1000
XYZ, 2000
{csv}
Note
titlePersistent 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.

 

 

Section
Column

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 CSOAP using --action getSpacePermissionList

Example imageImage Added
Macro browserImage Added
Wiki
Section
Column
width50%
No Format
{csv:output=wiki|columns=Space, Id Type, Id, viewspace|augments=[%Space%:],,,!images^%viewspace%.png!|headingAugments=,,,View}
...
{csv}