Es gibt noch kein Template zum CP Suche.
Leider wird die Eingabe von "0" bei max. Worten ignoriert, also muss ein kleines Skript her (oder du bittest OG das zu korrigieren).
http://code.google.com/p/phpwcms/issues/list
Hier ein cp Trigger in /frontend_init/ (reagiert nur auf den CP "search"):
template/inc_script/frontend_init/cp_search_no_sum.php
Code: Select all
<?php
// -------------------------------------------------------------------------------------------
// obligate check for phpwcms constants
if (!defined('PHPWCMS_ROOT')) {
die("You Cannot Access This Script Directly, Have a Nice Day."); }
// -------------------------------------------------------------------------------------------
// 01.10.09 KH (flip-flop) Kill all summary entries between <p> and </p> in search result
// -------------------------------------------------------------------------------------------
function CP_SEARCH_NO_SUMMARY($text, & $data) {
if( $data['acontent_type'] == 13 ) // CP: 13 => search
{
$text = preg_replace("/\<p\>(.*?)\<\/p\>/si", '', $text); // kill all <p> ....</p>
}
return $text;
}
register_cp_trigger('CP_SEARCH_NO_SUMMARY');
?>
$phpwcms['allow_ext_init'] = 1;
Die max. Words im CP würde ich auf 1 setzen, um Laufzeit zu sparen.
Knut