Project

General

Profile

Actions

Feature #14242

closed

Make rendering of link to advanced search form configurable

Added by Sacha Vorbeck over 20 years ago. Updated over 16 years ago.

Status:
Closed
Priority:
Should have
Category:
Indexed Search
Target version:
-
Start date:
2004-07-16
Due date:
% Done:

0%

Estimated time:
PHP Version:
Tags:
Complexity:
Sprint Focus:

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

0000221-adv_link_for_indexesearch.txt (1.01 KB) 0000221-adv_link_for_indexesearch.txt Administrator Admin, 2004-07-16 16:26
Actions

Also available in: Atom PDF