Quantcast
Image

Search Results for: plugins

How to install Pacemaker, Corosync and pcs on CentOS, Red Hat or Fedora

By  •  December 2, 2021

Pacemaker and Corosync is a popular stack in high availability implementation while pcs (Pacemaker/Corosync Configuration System) immensely simplify configuration of high availability clusters based on both Pacemaker and Corosync. …
Read More

How to change proxy settings in Chrome

By  •  December 2, 2021

Google Chrome, by default, uses your operating system's default setting to connect to the network and the internet. Your system, on the other hand, is usually configured with a …
Read More

How to remove edit link in Display Wiki Page plugin

By  •  May 28, 2018

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.

plugins/displaywikipage/code.php

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.

Top