Table of Contents
jQuotes Plugin
Compatible with DokuWiki
Greebo
This plugin reads JSON datafiles and displays a random quotation.
The quotation is refreshed every user configurable seconds with a new one using an AJAX request.
Click on quotation to copy it to the clipboard.
Download
Download and install the plugin using the Extension Manager. Refer to Plugins on how to install plugins manually.
Changes
- Update plugin date in plugin.info.txt (2020-05-13 13:37)
- CSS support bootstrap3 tpl (2020-05-13 03:47)
- final-final CSS tweaks (2020-05-13 03:08)
- final CSS tweaks (2020-05-12 22:54)
- update php/js comments/authors (2020-05-12 17:04)
Usage
Just reference a JSON textfile in the correct format with the following syntax:
{{jquotes>namespace:cookiefile.json}}
You may specify the interval for changing the cookie in seconds:
{{jquotes>namespace:cookiefile.json?15}}
The default is 30 seconds - minimum is 5 seconds.
Input files
I chose this file format as it is fully compatible with Android Quotes Widget, which I like to use.
The quotations file needs to be a JSON textfile (ex. myquotes.json) uploaded through the mediamanager.
Here is an example:
{"quotes": [ { "quote":"Quote1" ,"author":"Author1" }, { "quote":"Quote2" ,"author":"Author2" } ]}
Some populated example files can be found at: Quotes-Widget-Data-Files
Known Shortcomings
- Input files should be UTF-8 encoded.