Formatting CSV data

Warning

Specially formatted blocks work in both dynamic tables and pages built with the legacy editor.

Creating new pages in the legacy editor is no longer possible.

However, you can easily convert any existing pages from the legacy editor to the new editor format. For more information, see Switching a page to the new editor format.

To display CSV data as a table, use the markup:

%%(csv delimiter=; head=1)
Heading 1;Heading 2;Heading 3
cell 11;cell 12;cell 13
cell 21;cell 22;cell 23
%%
See the result

Markup parameters:

  • delimiter: Field separator used in CSV tables.

  • head: If set to 1, the first row of the table becomes a heading.

Note

You cannot use text formatting elements in CSV tables.

See also