Not logged in. · Lost password · Register
Forum: Non-English Discussion German discussion RSS
Suchergebnis anpassen
Avatar
Skipper.KA #1
Member for a month · 4 posts
Group memberships: Members
Show profile · Link to this post
Subject: Suchergebnis anpassen
Hallo,

ich suche eine Möglichkeit, die Suchergebnisse anzeigen zu lassen, ohne Zusatzinformation.

D.h. ohne die Infos, wieviel Treffer im jeweiligen Beitrag gefunden wurden und wann es zuletzt geändert wurde.

Habe weder in der inc/search.php, noch in inc/fulltext.php, noch in css/_search.lss etwas gefunden.

Danke vorab und Gruß
Avatar
Skipper.KA #2
Member for a month · 4 posts
Group memberships: Members
Show profile · Link to this post
Hallo,

meine Anfrage wurde im englischsprachigen Forum gelöst. Falls es noch jemanden betrifft, hier die Lösung inkl. Plugin von turnermm:



A week or two ago I answered a closely related question:
   https://forum.dokuwiki.org/thread/16487
The code there requires a small change:
class action_plugin_fsearch extends DokuWiki_Action_Plugin
{

    public function register(Doku_Event_Handler $controller)
    { 
       $controller->register_hook('SEARCH_RESULT_FULLPAGE', 'BEFORE', $this, 'fullpage',array());
    }

    public function fullpage(Doku_Event $event, $param)
    {
      // $icon = "<br />TEST";
        //$event->data['resultHeader'][] = $icon; 
    $event->data['resultBody']['meta']= "";      
    }
      

}
Attached is the plugin.  Copy it to lib/plugins and unzip it there.
The author has attached one file to this post:
fsearch.zip 698 Bytes
You have no permission to open this file.
Close Smaller – Larger + Reply to this post:
Verification code: VeriCode Please enter the word from the image into the text field below. (Type the letters only, lower case is okay.)
Smileys: :-) ;-) :-D :-p :blush: :cool: :rolleyes: :huh: :-/ <_< :-( :'( :#: :scared: 8-( :nuts: :-O
Special characters:
Go to forum
Imprint
This board is powered by the Unclassified NewsBoard software, 20150713-dev, © 2003-2015 by Yves Goergen
Current time: 2019-01-17, 21:14:42 (UTC +01:00)