Version 1.0
If you are using the Kirby CLI, you can install this plugin by running the following commands in your shell:
$ cd path/to/kirby
$ kirby plugin:install lauriiii/csv-to-table
- Clone or download this repository.
- Unzip the archive if needed and rename the folder to csv-to-table.
Make sure that the plugin folder structure looks like this:
site/plugins/csv-to-table/
(table: filename.csv)
The separator used in your CSV files.
Default: ;
(table: filename.csv delimiter: ,)
Default: 0
(table: filename.csv length: 9999)
(table: filename.csv class: test)
Wraps the first row of the table with thead.
Default: false
(table: filename.csv thead: true)
You can use the following settings on your config file to change the defaults.
c::set('csvtotable.default.class', '');
c::set('csvtotable.default.delimiter', ';');
c::set('csvtotable.default.length', '0');
c::set('csvtotable.default.thead', false);
http://www.opensource.org/licenses/mit-license.php
Lauri Liimatta http://lauriliimatta.com