Project

General

Profile

Feature #14242 ยป 0000221-adv_link_for_indexesearch.txt

Administrator Admin, 2004-07-16 16:26

 
TS setup configuraton line:
plugin.tx_indexedsearch.show.link_advanced // boolean

In class.tx_indexedsearch.php replace:

$out.='<p>'.
($this->piVars["ext"] ?
'<a href="'.$this->pi_getPageLink($GLOBALS["TSFE"]->id,$GLOBALS["TSFE"]->sPre,array($this->prefixId."[ext]"=>0)).'">'.$this->pi_getLL("link_regularSearch").'</a>' :
'<a href="'.$this->pi_getPageLink($GLOBALS["TSFE"]->id,$GLOBALS["TSFE"]->sPre,array($this->prefixId."[ext]"=>1)).'">'.$this->pi_getLL("link_advancedSearch").'</a>'
).'</p>';

with:

if ($this->conf["show."]["link_advanced"]) {
$out.='<p>'.
($this->piVars["ext"] ?
'<a href="'.$this->pi_getPageLink($GLOBALS["TSFE"]->id,$GLOBALS["TSFE"]->sPre,array($this->prefixId."[ext]"=>0)).'">'.$this->pi_getLL("link_regularSearch").'</a>' :
'<a href="'.$this->pi_getPageLink($GLOBALS["TSFE"]->id,$GLOBALS["TSFE"]->sPre,array($this->prefixId."[ext]"=>1)).'">'.$this->pi_getLL("link_advancedSearch").'</a>'
).'</p>';
}

Update documentation and add new configuration option to TS part.
    (1-1/1)