Table of Contents

Plugin Backlinks2

backlinks2 plugin by Michael Klier
Lists all pages that link back to a given page using the first headline as link title

Last updated on 2008-03-21. Provides Syntax.
Compatible with DokuWiki devel > 2007-06-26.

Conflicts with backlinks!
Similar to backlinks.

Tagged with backlinks, meta.

Download plugin-backlinks.tgz

Installation

Download the archive and unpack it into <dokuwiki>/lib/plugins.

The plugin is also available via darcs.

% cd <dokuwiki>/lib/plugins
% darcs get http://chimeric.de/_dev/darcs/dokuwiki/plugins/backlinks

Configuration

The plugin uses the built-in DokuWiki functions to generate the backlinks list. You can use the config-variable hidepages config option to suppress pages from being listed.

Syntax

The syntax is as follows:

{{backlinks>wiki:page}}

You can list the backlinks to the current page by using:

{{backlinks>.}}

Demo

You can try the plugin here.

ToDo

Feature Requests

How about an option to limit the results to those in a specified namespace or namespaces? — Carl Manzi 2007-11-27 15:15

Bugs

Resources

Comments/Suggestions

Several versions ago the syntax of the plugin was changed: ~~BACKLINKS~~ ⇒ {{backlinks>.}}

Could you advice any method to migrate to the new syntax except manual correction of every page? I have more than 1600 in my Wiki so it's, figurally, pain in my ass. :))

The same migration was done in new version of Blog/Discussion plugin - author made special script for migration old data, see plugin:discussion. — Alexander Sorkin aka Kibi 09.11.2006

UPD: I resolved the problem by running following command from Unix shell (from directory data/pages):
find . -name \*.txt -exec sed -i -e 's/~~BACKLINKS~~/{{backlinks>.}}/' {} \;

But you need a) Unix server b) shell access. It couldn't help with Windows server or FTP access… — Alexander Sorkin aka Kibi 09.11.2006

Hi, I would have suggested something simliar to your solution ;-). I think about an conversion option if someone from the windows world asks for. — Michael Klier 10.11.2006 10:09
It's me, who is from Windows world. I manage several DokuWiki installations in different environment. One of them is at SuSe Linux with SSH access, but all other at Linux servers with FTP access only. So the problem stays actual for me. I thought about downloading all data/pages content to local machine to apply massive replacement, but it's impossible for some files in my DokuWiki - files having extremly long names (russian names became 6 times longer in UTF-8). Win32 file system doesn't allow such a long names as it possible in unix FS. — Alexander Sorkin aka Kibi 10.11.2006
Ok, I go for it. Just give me some time. — Michael Klier 10.11.2006 11:10
ok
Ok, for the sake of backwards compatibility I added support for the deprecated ~~BACKLINKS~~ syntax. — Michael Klier 2008-03-21 14:44:18