NB CSV to table - Documentation
Installation
Copy pi.csv_to_table.php to your system/plugins folder
For ExpressionEngine 2:
Copy the csv_to_table folder to your /system/expressionengine/third_party folder
Usage
{exp:nb_csv_to_table file="./files/example.csv" table_border="1" table_class="standard" header_rows="1|30" header_class="resultColumnOne" row_class="row1|row2" show_row_count="no" delimiter="|"}
Parameters
file="./files/example.csv"
CSV file to parse. This can be a full URL (eg. http://mysite/myfile.csv) or a relative path to the file. The file must have appropriate permissions in order to be read.
table_border="1"
Table border, in pixels
table_class="standard"
The class given to the <table> tag.
header_rows="1|30"
Rows whose cells will be given a header <th> tag.
header_class="resultColumnOne"
The class given to the <th> header cells.
row_class="row1|row2"
The class given to regular, <td> cells. Row classes can alternate, similar to the switch= option in exp:channel:entries, by separating each class with a pipe | character.
show_row_count="no"
If set to "yes" or "on" or "enable", the first column of the table will display a simple cell showing the row count.
delimiter="|"
Field delimiter. Default is comma (,).
enclosure='"'
Field enclosure character. Default is the double quotation mark (").
