diff --git a/Controller.php b/Controller.php index 4901738..91be3d8 100644 --- a/Controller.php +++ b/Controller.php @@ -177,7 +177,7 @@ final class Controller extends ModuleAbstract implements WebInterface $view = new View($this->app, $request, $response); if ($request->getData('page') === 'table-of-contencts' || $request->getData('page') === null) { - $path = \realpath(__DIR__ . '/../' . $request->getData('id') . '/Docs/Help/en/table_of_contents.md'); + $path = \realpath(__DIR__ . '/../' . $request->getData('id') . '/Docs/introduction.md'); } else { $path = \realpath(__DIR__ . '/../' . $request->getData('id') . '/Docs/Help/en/' . $request->getData('page') . '.md'); } @@ -188,10 +188,12 @@ final class Controller extends ModuleAbstract implements WebInterface return $view; } - $markdown = Markdown::parse(\file_get_contents($path)); + $content = Markdown::parse(\file_get_contents($path)); + $navigation = Markdown::parse(\file_get_contents(\realpath(__DIR__ . '/../' . $request->getData('id') . '/Docs/Help/en/table_of_contents.md'))); $view->setTemplate('/Modules/Help/Theme/Backend/help-module'); - $view->setData('content', $markdown); + $view->setData('content', $content); + $view->setData('navigation', $navigation); return $view; } diff --git a/Theme/Backend/help-module.tpl.php b/Theme/Backend/help-module.tpl.php index 7cfa9cd..49e623e 100644 --- a/Theme/Backend/help-module.tpl.php +++ b/Theme/Backend/help-module.tpl.php @@ -1,5 +1,5 @@