[Typo3] [TIP] Indexed search and multilanguage

Maxime Fiset maximefiset at hotmail.com
Mon May 9 16:11:48 CEST 2005


Hi list

I had a multilanguage site with 3.7.0 and Indexed Search 2.1.3  and the links to the results pages were always in default language. I modified the file pi/class.tx_indexedsearch.php as follow to get it right:

Line 1399:
        - add $row as the third parameter to send to the function linkPage:
$out.="<BR>".$this->pi_getLL("res_path")." ".$this->linkPage($pathId,htmlspecialchars($this->getPathFromPageId($pathId,$pathMP)),$row);


Line 1488 (just before the "return this-pi_linkToPage..."):
        - add :   $urlParameters["L"]=$row["sys_language_uid"];


Remember that you have to modified the function  makeLanguageIndication($row) (Line 1428) in order to get the good flag on each result.

Hope it will help some of you guys.  


- Maxime Fiset (mafis)

-----------------------
The mailing list archive is found here:
http://typo3.org/documentation/mailing-lists/english-main-list-archive/
				



More information about the TYPO3-english mailing list