Remove edit link in Display Wiki Page plugin

Display Wiki Page is a DokuWiki plugin that enables embedding of a wiki page in anywhere of your site from the template. The following is an example as used in the sidebar of this site to display the category page.

If you noticed, there's and Edit link at the end of the page. While this is convenient, you might not want that to appear for some reason.

To remove it, go to you DokuWiki's installation directory, and edit this file.


In there, comment out the following line.

if ($perm >= AUTH_EDIT)
  // create and add the 'edit' button
  $result .='<div class="secedit2"><a href="' . DOKU_BASE . 'doku.php?id=' . $wikipagename . '&amp;do=edit'
  . '">' . $lang['btn_secedit'] . '</a></div>';

After saving the file, the Edit link should no longer appear at the bottom of the page.

Sign up for Object Oriented PHP & MVC and many other great courses on Udemy to learn more.

Object Oriented PHP & MVC

Build a custom object oriented PHP MVC framework and then build an application with it!

Written by Mohd Shakir Zakaria.

Last updated on 2019-02-12.