plugin:autosearch
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
plugin:autosearch [2008-12-18 01:22] – 70.103.232.219 | plugin:autosearch [2023-10-30 22:58] (current) – Klap-in | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== autosearch Plugin ====== | ||
+ | |||
+ | ---- plugin ---- | ||
+ | description: | ||
+ | author | ||
+ | email : ahmet@ceng.metu.edu.tr | ||
+ | type : action | ||
+ | lastupdate : 2007-02-07 | ||
+ | compatible : Anteater, Rincewind, Angua, Adora Belle, Weatherwax, Binky | ||
+ | depends | ||
+ | conflicts | ||
+ | similar | ||
+ | tags : redirect, search, namespace | ||
+ | |||
+ | downloadurl: | ||
+ | sourcerepo : | ||
+ | bugtracker : | ||
+ | donationurl: | ||
+ | ---- | ||
+ | |||
+ | |||
+ | If the site visitor requests a non-existent page, autosearch pluging will kick in to show the following: | ||
+ | |||
+ | - Redirect to the index sub-page if one exists. For example, if '': | ||
+ | - If no index subpage is available, show the list of subpages (requires [[indexmenu]] plugin) and also the results of searching the requested page title. The search results is useful especially when you move your pages around and static links from outside world into your site become obsolete. | ||
+ | |||
+ | Information and download: | ||
+ | * [[http:// | ||
+ | * [[http:// | ||
+ | |||
+ | ======= Discussion ======= | ||
+ | |||
+ | zip file is not ok at all: | ||
+ | * Create folder '' | ||
+ | * In Linux, first create the autosearch directory (" | ||
+ | |||
+ | ===== Indexmenu compatibility ===== | ||
+ | You need to apply this patch to get latest [[plugin: | ||
+ | |||
+ | <code diff> | ||
+ | diff -urN / | ||
+ | --- / | ||
+ | +++ ./ | ||
+ | @@ -41,7 +41,7 @@ | ||
+ | | ||
+ | } | ||
+ | } | ||
+ | - if($this-> | ||
+ | $indexmenu =& plugin_load(' | ||
+ | + if($this-> | ||
+ | $indexmenu =& plugin_load(' | ||
+ | | ||
+ | l,$this); | ||
+ | | ||
+ | | ||
+ | </ | ||
+ | |||
+ | |||
+ | ===== Correct start pages ===== | ||
+ | |||
+ | I made a few alterations to correctly handle start pages [[config: | ||
+ | |||
+ | <code diff> | ||
+ | diff -ur autosearch.old/ | ||
+ | --- autosearch.old/ | ||
+ | +++ autosearch/ | ||
+ | @@ -23,6 +23,7 @@ | ||
+ | array()); | ||
+ | } | ||
+ | | ||
+ | + global $conf; | ||
+ | | ||
+ | | ||
+ | |||
+ | @@ -36,6 +37,9 @@ | ||
+ | | ||
+ | | ||
+ | | ||
+ | + if($index == ' | ||
+ | + $index = $conf[' | ||
+ | + | ||
+ | | ||
+ | | ||
+ | | ||
+ | diff -ur autosearch.old/ | ||
+ | --- autosearch.old/ | ||
+ | +++ autosearch/ | ||
+ | @@ -1,4 +1,4 @@ | ||
+ | <? | ||
+ | -$conf[' | ||
+ | +$conf[' | ||
+ | | ||
+ | | ||
+ | diff -ur autosearch.old/ | ||
+ | --- autosearch.old/ | ||
+ | +++ autosearch/ | ||
+ | @@ -1,5 +1,5 @@ | ||
+ | <? | ||
+ | | ||
+ | - ' | ||
+ | + ' | ||
+ | | ||
+ | | ||
+ | </ | ||
+ | |||
+ | [[pinguim.ribeiro@gmail.com|Fernando Ribeiro]] | ||