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.
| Download | plugin-backlinks.tgz |
|---|
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
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.
The syntax is as follows:
{{backlinks>wiki:page}}
You can list the backlinks to the current page by using:
{{backlinks>.}}
You can try the plugin here.
How about an option to limit the results to those in a specified namespace or namespaces? — Carl Manzi 2007-11-27 15:15
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, figuratively, a 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
UPDATE: 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 similar 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 extremely 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
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Noncommercial-Share Alike 3.0 Unported