Dokuwiki - Metadata Renderer

1 - About

A metadata is a renderer type (parsing mode) that is used to create metadata.


3 - Type

Internally DokuWiki maintains two arrays of metadata

  • current (current metadata should only be set in the context of the renderer as it will be overwritten the next time metadata is rendered)
  • persistent. (The persistent array holds duplicates of those key/values which should not be cleared during the rendering process.)

If you want to create logic that persists:

  • only in the scope of a session (example, add a library at the end of a template if a syntax is present): use current
  • for all scope that is data dependent: use persistent

4 - Management

4.1 - Start

Metadata: The metadata rendering is only started by the p_get_metadata() and p_set_metadata().

with the $render option possible values:

  • METADATA_RENDER_UNLIMITED (also combined with the previous two options),

4.2 - Set



  • renderer→meta


global $ID
    array($key => $value),
    $render = false,
    $persistent = true

4.3 - Event - Signalled by p_render_metadata() in inc/parserutils.php before instantiating the metadata renderer.

4.4 - Get

To get persistent metadata

To get volatile meta:

  • renderer→meta

4.5 - Update

Metadata update happens asynchronously via the taskrunner

The task runner is located in lib/exe/taskrunner.php and is included as hidden image by the tpl_indexerWebBug() function.

Data Science
Data Analysis
Data Science
Linear Algebra Mathematics

Powered by ComboStrap