How to add a row number with augments - Cloud
Overview
This page shows how you can use augments to add a column of row numbers in a CSV table, except for the header row.
Macro browser input
Select this macro
Macro name | Advanced Table - CSV Table |
Macro syntax (Old editor) | {csv} |
Macro syntax (New editor - case insensitive) | /CSV (Comma Separated Values) |
Define these parameters/values
Output format | wiki |
Columns to display | ,Product,Sales |
Augments to data row values | %#% |
Screenshot
Wiki markup input (Old editor)
{csv:columns=,Product, Sales|augments=%#%} Product, Sales ABC, 1000 XYZ, 2000 {csv}
Example result
Persistent row number
This row number is added to the macro generated HTML table just as if it was in the original CSV data. This is different from the Auto number each row option in the macro editor for the table which is a browser display option only. If the augment is specified, the row numbers are also exported along with the table.
Other examples
Visit our full list of product examples for additional inspiration!