Hello everyone,
I have a test setup that creates a page like this:
saveWikiText($id, $content, '');
idx_addPage($id);
and I am trying to get the metadata description like that:
$metadata = p_get_metadata($id);
var_dump ($metadata["description"]);
As a result I get following array:
array(1) {
["abstract"]=>
string(31) "This page is for test purposes."
}
But actually I want $metadata["description"]["tableofcontents"] according to
https://www.dokuwiki.org/devel:metadata.
Am I saving the page wrong or what do I need to do to be able to get this information?