====== Backlinks ======
Backlinks are those links linking back to the current page. In DokuWiki you can see a list of pages linking to the current document by clicking at the [[pagename]] at the top.
===== Backlinks not working? =====
==== DokuWiki version 2007-06-26b ====
By some ad hoc testing I discovered a **constraint on page names**: they have to start with at least 3 letters. Shorter names or those beginning with or containing in the first 3 characters some digits or things like underscore (_) are not fetched by DokuWiki´s backlink function on clicking a page´s name. I had no look into the code yet, it should be easily fixable. BTW: backlinks are a great invention (missing from HTML, as often remarked) that allows you to control your information net in both directions, esp. to see which expectations a reader may have by a backlinked page she or he may be coming from (using a forward link //you// may have explicitly set). [[ hh.lohmann@yahoo.de?subject=DokuWiki: Backlinks | hh ]]
==== Older Versions ====
Note: this seems to apply only to older versions of DokuWiki. [[ hh.lohmann@yahoo.de?subject=DokuWiki: Backlinks | hh ]] 2007-08-30
Backlinks do not work in any of the released versions of DokuWiki, but work on the development release. If you want to get backlinks working, it is a relatively trivial fix in the code. You need to change the ft_resultCombine function in /inc/fulltext.php.
So, this:
function ft_resultCombine($args){
$array_count = count($args);
$result = array();
foreach ..../* more code here*/
Becomes this:
function ft_resultCombine($args){
$array_count = count($args);
if($array_count == 1){
return $args[0];
}
$result = array();
foreach ..../* more code here*/
>Does not work with version 2005-09-22 ?
>> They weren't originally working for me but I tracked this down to a problem with the page indexing so searches were blank as well. If you use a template other that the default and the template was written before indexing was introduced you need to add '''' near the bottom of main.php in your template directoy on the line before ''