Project

General

Profile

Bug #20875 ยป indexed_search_desc_ts.diff

Administrator Admin, 2009-08-13 15:18

View differences:

ext_typoscript_setup.txt (working copy)
skipExtendToSubpagesChecking = 0
exactCount = 0
}
#resultrow parameters
results{
#summaryMax=300
#postPreLgd=60
#postPreLgd_offset=6
#divider= ... 
}
result_link_target =
/*
pi/class.tx_indexedsearch.php (working copy)
}
if (!trim($markedSW)) {
if(isset($this->conf['results.'])){
if(isset($this->conf['results.']['summaryMax']) && t3lib_div::testInt($this->conf['results.']['summaryMax'])){
$lgd=$this->conf['results.']['summaryMax'];
}
}
$outputStr = $GLOBALS['TSFE']->csConvObj->crop('utf-8',$row['item_description'],$lgd);
$outputStr = htmlspecialchars($outputStr);
}
......
$postPreLgd_offset = 5;
$divider = ' ... ';
if(isset($this->conf['results.'])){
if(isset($this->conf['results.']['summaryMax']) && t3lib_div::testInt($this->conf['results.']['summaryMax'])){
$summaryMax=$this->conf['results.']['summaryMax'];
}
if(isset($this->conf['results.']['postPreLgd']) && t3lib_div::testInt($this->conf['results.']['postPreLgd'])){
$postPreLgd=$this->conf['results.']['postPreLgd'];
}
if(isset($this->conf['results.']['postPreLgd_offset']) && t3lib_div::testInt($this->conf['results.']['postPreLgd_offset'])){
$postPreLgd_offset=$this->conf['results.']['postPreLgd_offset'];
}
if(isset($this->conf['results.']['divider'])){
$divider=$this->conf['results.']['divider'];
}
}
$occurencies = (count($parts)-1)/2;
if ($occurencies) {
$postPreLgd = t3lib_div::intInRange($summaryMax/$occurencies,$postPreLgd,$summaryMax/2);
    (1-1/1)