After asking the author of "selectseach" plugin for adoption, i created an own repository for it in my github account. This makes things easier :-) Now you can access development code at
https://github.com/igittigitt/dokuwiki-plugin-selectsearch
Soon i will update the official page, so it will be available from the pluginmanager inside DW.
Well i found a way to get around those ugly maincode-hacks. I added an event 'ACT_TPL_RENDER' to my (adopted) "selectsearch"-Plugin. The eventhandler intercepts only the 'search' action and passes other through. "intercept" means that it hooked with 'BEFORE' into eventlist and will return false to prevent default dokuwiki-action to take place. Instead i create and show my custom result page.
My goals:
- Show number of hits and processing time of search
- Show pagetitle as link of every page found (do not show number of searchterm matches, let user decide)
- Show namespace-path where page is found as link. Link will lead to start-page of last namespace shown in path.
Path consist of titles of namespace start-pages. Parent namespaces are delimited by '/' (or maybe ' >> ')
There is a LOT of work to do. Update the whole plugin to current architecture, adding css to the right files, adding configoptions, localization, etc. I will do this as soon as its clear where to go ;-)
Currently i'm working on a "pager" to scroll through results (no clue where to transport the current page between calls, or where to store search results to not search on any paging).
Also i'm looking for a way to get my other codehacks into the plugin.
Try it, basically it works.