Learn about DokuWiki
Learn about DokuWiki
Compatible with DokuWiki
Similar to database
On July 2017 this plugin was adopted by me with bless of the author “Thomas Urban”. Please also note the credits, taken from his homepage.
Here is a short list of features included with this plugin:
To access remote databases, the plugin uses PDO. The appropriate drivers must be installed in the underlying operating-system, resp. PHP.
<database2> SELECT * FROM mytable </database2>
The plugin is integrated in a page by using a special tag called
database2 like this:
<database2 tablename [attribute=value ...]> column definition column definition ... </database2>
The tag is surrounding a set of column definitions. Additionally the tag must contain a table's name to use in connected database and may contain further options. These options are called table options furtheron since every column may have individual options as well called column options throughout the rest of this documentation.
On successfully installing plugin or upgrading from versions prior to 0.4.0 you need to enable the plugin on a per-page basis. Change to your wiki's configuration manager and look for the section related to plugin database2.
If your wiki isn't providing any open write access including wiki markup support and/or if you trust all your users you may globally enable database2 on every page using separate option in configuration manager. Doing so any patterns provided for selecting enabled pages are ignored.
If global option described before is
off, you may enter one or more patterns for matching pages' full path selecting those pages being enabled for using database2 tag. Write one pattern per line. Each pattern may be a PCRE pattern wrapped in slashes or a shell pattern with
? as wildcards.
discussion are used to enable unauthenticated users to post comments. As such posts may include any sort of Wiki markup. This way it's possible for commenters to embed database2 tags with public write access to databases into pages. Starting with 0.4.0 support for database2 must be enabled explicitly for selected pages of your Wiki. Now, it's possible to install both plugins. However you shouldn't have discussions on pages enabled for database2.
The following points are on my agenda: