Image

DokuWiki

How to remove edit link in Display Wiki Page plugin

By  •  DokuWiki

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.

How to enable sortable table in DokuWiki

By  •  DokuWiki

DokuWiki’s default table is nothing but static HTML table. If you’re looking to automatically sort your tables in DokuWiki with your default installation, then you’re out of luck. Luckily there are plugins that can help extend DokuWiki’s table function.

How to return “HTTP 404/Page Not Found” for non-existing pages in Dokuwiki

By  •  DokuWiki

DokuWiki by default returns 200 HTTP status code for non-existing pages. This might trigger duplicate content alert to search engines and would somehow affect the site’s SEO. There’s an option to still give the nice DokuWiki Not found page yet still returning the 200 HTTP code.

How to optimize Dokuwiki for SEO

By  •  DokuWiki

DokuWiki has great support for SEO, but unfortunately its default configuration is completely against SEO best practices. Follow the these tips to make your DokuWiki site more search engines friendly.

How to install plugins in DokuWiki

By  •  DokuWiki

DokuWiki is a powerful but simple to use Wiki and is mainly aimed at creating documentation. Another great thing about it is that it supports plugin. You can find various plugins hosted at DokuWiki’s plugin page

There are 2 methods i]to installing plugins for DokuWiki, and you can choose any of these 2 methods;

How to change image width in a DokuWiki entry

By  •  DokuWiki

To change the width of an image in a DokuWiki entry, simply add ? followed by the intended width of the image after the image’s filename as the following;

{{.:change-image-width/dokuwiki-admin-configuration-manager-anti-spam-settings.png?300|}}

How to enable hierarcical breadcrumb in Dokuwiki

By  •  DokuWiki

Hierarchical breadcrumb is useful if your DokuWiki site’s content is well organized into strict hierarchical namespaces. It will tell you where you are, and you can track your location back to the main page.

This is good for user experience, and useful for SEO as well, as it distributes link juice/PageRank between other pages in the site.

How to disable delayed indexing in Dokuwiki

By  •  DokuWiki

To combat spam, DokuWiki is by default configured to enable what it call Delayed Indexing. Delayed indexing basically try to delay indexing by search engines by adding noindex,nofollow robots meta tag to newly added and edited pages.

While this is useful to moderate spam edit of pages, it will cause the page to not be indexed by search engines, and all the links in the page will not be followed. This is a very bad scenario for SEO as not only the page will not be visible in search results but also the PageRank or link juice will not flow to other pages link from it. It will be disastrous if the page affected is the main page itself.

You can find the following meta tag when viewing the source of the page which indexing has been delayed.

<meta name="robots" content="noindex,nofollow" /> 

How to center image in a Dokuwiki entry

By  •  DokuWiki

Images in a DokuWiki entry is by default aligned to th e left. Here’s the tag to insert image in a DokuWiki entry;

{{.:center-image/dokuwiki-admin-configuration-manager-anti-spam-settings.png|}}

To align the image to the center, add space to both left and right of the image tag in DokuWiki syntax as the following;

{{ .:center-image/dokuwiki-admin-configuration-manager-anti-spam-settings.png |}}

Top