Ich versuche das Plugin NewPage
https://www.dokuwiki.org/plugin:addnewpage?s[]=newpage
richtig ins Template einzubinden.
Da steht:
Site templates
To include an add-new-page form in a Site Template, use the following line:
<?php echo p_render('xhtml',p_get_instructions('{{NEWPAGE}}'),$info) ?>
Ich habe es auch in die main.php vom Template eingebunden aber irgenwie ist das nicht so wie ich es mir vorgestellt habe.
Weiss jemand wie man es richtig macht.
So habe ich es gemacht:
Auszug aus main.php
<!-- PAGE ACTIONS -->
<div id="dokuwiki__pagetools">
<h3 class="a11y"><?php echo $lang['page_tools']; ?></h3>
<div class="tools">
<?php echo p_render('xhtml',p_get_instructions('{{NEWPAGE}}'),$info) ?>
<ul>
<?php echo (new \dokuwiki\Menu\PageMenu())->getListItems(); ?>
</ul>
</div>
</div>