autosearch plugin

Compatible with DokuWiki

  • 2012-01-25 "Angua" yes
  • 2011-05-25 "Rincewind" yes
  • 2010-11-07 "Anteater" yes

plugin handles non-existent pages by redirecting to index sub-page if available; otherwise showing sub-pages and/or displaying Search Results

Last updated on
2007-02-07
Provides
Action
Requires
indexmenu

Similar to 404manager, autostart

Tagged with namespace, redirect, search

Details and Download FIXME
Alternate Details and Download (if the link above does not work).

Discussion

The download archive on his site is broken, as is the CAPTCHA. – abr

The download was an invalid zip file as of 12-06-07. No CAPTCHA required, by the way. – JR

It's not really broken, you need a trick. In Linux, first create the autosearch directory (“mkdir autosearch”) in the same directory of zip file, then unzip it with “unzip autosearch.zip”. When it ask to overwrite the autosearch directory, say “n”. — Samuele Tognini 2008/08/27 17:46

Indexmenu compatibility

You need to apply this patch to get latest indexmenu releases work:

diff -urN /tmp/autosearch/action.php ./autosearch/action.php
--- /tmp/autosearch/action.php  2007-07-03 12:15:00.000000000 +0200
+++ ./autosearch/action.php     2008-08-27 18:40:35.000000000 +0200
@@ -41,7 +41,7 @@
             die();
         }
       }
-      if($this->getConf('pagelist') && is_dir(dirname(wikiFN("$ID:dummy"))) &&
$indexmenu =& plugin_load('syntax', 'indexmenu')){
+      if($this->getConf('pagelist') && is_dir(dirname(wikiFN("$ID:dummy"))) &&
$indexmenu =& plugin_load('syntax', 'indexmenu_indexmenu')){
         $handled = $indexmenu->handle("{{indexmenu>$ID#2|js#default}}",null,nul
l,$this);
         $dummy_renderer = (object) array('doc'=>'');
         $indexmenu->render('xhtml',$dummy_renderer, $handled);
plugin/autosearch.txt · Last modified: 2011/12/23 21:51 by rikblok
 
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 3.0 Unported
Imprint Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki
WikiForumIRCBugsGitXRefTranslate