diff --git a/syntax.php b/syntax.php index 66d55a6..3e5b0cc 100644 --- a/syntax.php +++ b/syntax.php @@ -72,7 +72,6 @@ public function handle($match, $state, $pos, Doku_Handler $handler) 'title' => trim($title), 'titleimage' => trim($image), 'description' => trim($description), // Holds the added parameter for own descriptions - 'exists' => $exists, ); // text title (if any) @@ -82,7 +81,6 @@ public function handle($match, $state, $pos, Doku_Handler $handler) 'section' => cleanID($section), 'title' => trim($title), 'description' => trim($description), // Holds the added parameter for own descriptions - 'exists' => $exists, ); } } @@ -101,6 +99,10 @@ public function render($format, Doku_Renderer $renderer, $data) { list($flags, $pages) = $data; + foreach ($pages as $i => $page) { + $pages[$i]['exists'] = page_exists($page['id']); + } + // for XHTML output if ($format == 'xhtml') { /** @var helper_plugin_pagelist $pagelist */