Kirby Spreadsheet
Version 0.1.0
Include a table inside your textarea field from an .xlsx spreadsheet or comma separated text file. This plugin provides a Kirbytag, which lets you reference a spreadsheet. The columns and rows of the spreadsheet are then inserted as a table.
Installation
Download
Download the files and place them inside site/plugins/kirby-spreadsheet
.
Kirby CLI
Installing via Kirby's command line interface:
$ kirby plugin:install texnixe/kirby-spreadsheet
To update the plugin, run:
$ kirby plugin:update texnixe/kirby-spreadsheet
Git Submodule
You can add the Kirby Spreadsheet plugin as a Git submodule.
$ cd your/project/root
$ git submodule add https://github.com/texnixe/kirby-spreadsheet.git site/plugins/kirby-spreadsheet
$ git submodule update --init --recursive
$ git commit -am "Add Kirby Spreadsheet"
Run these commands to update the plugin:
$ cd your/project/root
$ git submodule foreach git checkout master
$ git submodule foreach git pull
$ git commit -am "Update submodules"
$ git submodule update --init --recursive
How to use
Insert the tag into a textarea field.
Example:
(spreadsheet: pricelist.xlxs class: pricelist)
Options:
class
The class you want to use for the table.
header
Set to false
if the table does not contain a header, default is true
(spreadsheet: pricelist.xlxs header: false)
sheet
Optional, the name of the worksheet.
(spreadsheet: pricelist.xlsx sheet: Table1)
License
Kirby Spreadsheet is open-sourced software licensed under the MIT license.
Copyright © 2016 Sonja Broda [email protected] https://www.texniq.de