—- plugin —-
description: A and query structured data in your wiki
author : Andreas Gohr
email : andi@splitbrain.org
type : syntax, action, helper
lastupdate : 2024-01-30
compatible : 2024-02-06 «Kaos», 2023-04-04 «Jack Jackrum», 2020-07-29 «Hogfather», 2011-05-25 «Rincewind», 2010-11-07 «Anteater», 2009-12-25 «Lemmings», 2009-02-14, 2008-05-05, 2007-06-26
depends : sqlite
conflicts : fckg #please create an issue report as well!
similar : fields, pagemod, strata, struct
tags : database, sqlite, data, tags, tables, listing
downloadurl: https://github.com/splitbrain/dokuwiki-plugin-data/zipball/master
sourcerepo : https://github.com/splitbrain/dokuwiki-plugin-data
bugtracker : https://github.com/splitbrain/dokuwiki-plugin-data/issues
donationurl: http://donate.dokuwiki.org/data
screenshot_img:
This plugin allows you to add structured data to any DokuWiki page. Think about this data as additional named attributes. Those attributes can then be queried and aggregated. The plugin is similar to what was done here for the repository plugin but its internals are very different to it.
You might want to consider using the spiritual successor to this plugin: struct Plugin
Since 2010-03-22, the data plugin uses the sqlite helper plugin. Therefore, the database file location and structure changed. If you want to keep your old database, you have to perform the following steps prior to upgrading the data plugin:
-
Move the file data/cache/dataplugin.sqlite to data/meta/data.sqlite
Perform the following SQL statements on the database (for example using the sqlite plugin’s admin page)
CREATE TABLE opts (opt,val);
CREATE UNIQUE INDEX idx_opt ON opts(opt);
INSERT INTO opts VALUES ('dbversion', 1);
Upgrade the data plugin
If you upgraded the data plugin before these steps, a blank data.sqlite has been created and you have to copy the data/cache/dataplugin.sqlite over the existing data/meta/data.sqlite.