This is an old revision of the document!
Table of Contents
table2csv Plugin
Compatible with DokuWiki
Angua
This extension has not been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues.
The table2csv plugin provides the ability to export the first table on a page to a csv file. The table must be an actual table and not a plugin that generates a table.
Installation
External requirements: This plugin requires the following additional components that must be installed separately:
- Tools plugin
- Install the Tools plugin.
- Modify Tools plugin. Upload the files from this release's /tools folder into the respective plugins/tools folders overwriting the baseline tools plugin files. (Note: If you were using the tools plugin save your current tools/conf/default.php file. The update will turn off all other tools. After the update modify the new default.php file to turn the tools you were using back on in the variable $conf['tools']).
- Install the table2csv plugin using the Plugin Manager and the download URL above. If you install this plugin manually, make sure it is installed in lib/plugins/table2csv/
Examples/Usage
Add the following plugin code. This will provide an export selection.
~~TOOLS:both~~
The file page should display the plugin Tools selection to Export To csv in the top and bottom right corners of the page. Select this to export the first table into a csv file. The filename and path can be specified in the /conf/default.php file. It currently defaults to table.csv in the dokuwiki base install folder.
Syntax
Add the following to a page to display the export to csv button in the top and bottom right corners
~~TOOLS:both~~
Configuration and Settings
Edit the file /conf/default.php to specify the file name and path. The path is relative to the base of the dokuwiki install folder.
Change Log
- An error occurred while fetching this feed: http://github.com/feeds/TomCafferty/commits/plugin-table2csv/master
Known Bugs and Issues
ToDo/Wish List
This plugin was created for a request I saw on the forum and I had something similar that I was working on. So I extracted this plugin. There would be some nice to have features such as
- Export all tables on the page to multiple files
- Specify the table to export
- Export file as a download file where the user specifies a local path