Feature #14242
closedMake rendering of link to advanced search form configurable
0%
Description
By default a link to an advanced search form is rendered beneath the search button in the standard search form.
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.
(issue imported from #M221)
Files