User Tools

Site Tools


sandboxes:sandbox11

~~INFO:syntaxplugins~~

~~INFO:adminplugins~~

~~INFO:actionplugins~~

~~INFO:rendererplugins~~

~~INFO:helperplugins~~

~~INFO:helpermethods~~

geoPHP plugin for DokuWiki

Provides access to the geoPHP library available at https://github.com/funiq/geoPHP.

$geophp = plugin_load('helper', 'geophp');

OpenLayers map plugin for DokuWiki

Provides a syntax for rendering an OpenLayers based map in a wiki page.

$openlayersmap_staticmap = plugin_load('helper', 'openlayersmap_staticmap');

$openlayersmap_staticmap->getMap()

Descriptionreturns url to the image
Parameterslatfloat
lonfloat
zoominteger
sizestring
maptypestring
markersstring
gpxstring
kmlstring
geojsonstring
apikeystring
Return valueimagestring

Pagelist Plugin

Lists pages in a nice formatted way

$pagelist = plugin_load('helper', 'pagelist');

$pagelist->addColumn()

Description(optional) adds an extra column for plugin data
Parametersplugin namestring
column keystring

$pagelist->modifyColumn()

Description(optional) override value of an existing column, value equal to false disables column
Parameterscolumn keystring
valueint|bool

$pagelist->setHeader()

Description(optional) Provide header data, if not given default values or [plugin]->th() is used
Parameterscolumn keystring
valueint|bool

$pagelist->setFlags()

Description(optional) overrides default flags, or en/disable existing columns
Parametersflagsarray
Return valuesuccessboolean

$pagelist->startList()

Description(required) prepares the table header for the page list

$pagelist->addPage()

Description(required) adds a page to the list
Parameterspage attributes, 'id' required, others optionalarray

$pagelist->finishList()

Description(required) returns the XHTML output
Return valuexhtmlstring

Tag Plugin

tag wiki pages

$tag = plugin_load('helper', 'tag');

$tag->overrideSortFlags()

Descriptiontakes an array of sortflags and overrides predefined value
Parametersnamestring

$tag->th()

Descriptionreturns the header for the tags column for pagelist
Return valueheaderstring

$tag->td()

Descriptionreturns the tag links of a given page
Parametersidstring
Return valuelinksstring

$tag->tagLinks()

Descriptiongenerates tag links for given words
Parameterstagsarray
Return valuelinksstring

$tag->getTopic()

Descriptionreturns a list of pages tagged with the given keyword
Parametersnamespace (optional)string
number (not used)integer
tag (required)string
Return valuepagesarray

$tag->tagRefine()

Descriptionrefines an array of pages with tags
Parameterspages to refinearray
refinement tagsstring
Return valuepagesarray

$tag->tagOccurrences()

Descriptionreturns a list of tags with their number of occurrences
Parameterslist of tags to get the occurrences forarray
namespaces to which the search shall be restrictedarray
if all tags shall be returned (then the first parameter is ignored)boolean
if the namespaces shall be searched recursivelyboolean
Return valuetagsarray
sandboxes/sandbox11.txt · Last modified: 2023/04/13 13:28 by m0tzo