[TYPO3-english] Indexed Search Engine multilanguage showing only default resoults
bernd wilke
t3ng at bernd-wilke.net
Fri Sep 13 11:57:30 CEST 2013
Am 13.09.13 10:49, schrieb Toni Andric:
> Hey guys,
> i must repeat my question and i could realy use some help.
>
> I am using Indexed search engine and its works fine, i get all the
> resoult i search for BUT only in default language. I have set the
> globals for Eng (1) and Ger (2) like this:
>
> [globalVar = GP:L=2]
> page {
> config.sys_language_uid = 2
> config.language = de
> config.htmlTag_langKey = de
> config.locale_all = de_DE
> }
> plugin.tx_indexedsearch._DEFAULT_PI_VARS.lang = 2
> [global]
>
> But i still get default search resoults even when on German version and
> i dont get any other language.
>
> My web tree is single one with localizations and when i check the "Info"
> i can see that the pages are indexed in german and english.
>
> I placed "Searchbox" with this TS:
>
> lib.searchbox = COA_INT
> lib.searchbox {
> 10 = TEXT
> 10.typolink.parameter = {$plugin.tx_indexedsearch.searchUID}
> 10.typolink.returnLast = url
> 10.wrap = <!-- searchbox begin --><form name="search" id="search"
> class="" action="|" method="post"><input type="text"
> name="tx_indexedsearch[sword]" id="searchQuery" value="" /><input
> class="hidden" type="hidden" name="tx_indexedsearch[_sections]"
> value="0" /><input type="hidden" name="tx_indexedsearch[pointer]"
> value="0" /><input type="hidden" name="tx_indexedsearch[ext]" value="0"
> /><input type="hidden" name="tx_indexedsearch[lang]" value="0" /><button
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
in which language do you search?
> class="submit" name="tx_indexedsearch[submit_button]" type="submit"
> value="search"><i class="icon-search"></i></button></form><!-- searchbox
> end -->
> # if you need here comes userFunc for exampe ajax search
> 20 = USER
> 20.userFunc = user_functionname
> 20.userFunc < plugin.name
> 20.userFunc.cssId = searchQuery
> }
>
> and have this for indexed plugin:
>
> plugin.tx_indexedsearch{
> show.rules = 0
> show.advancedSearchLink = 0
> templateFile = fileadmin/tx_indexed_search.html
> _DEFAULT_PI_VARS.results = 99
> _DEFAULT_PI_VARS.lang = 0
> }
>
> Could the TS version of searchbox be the problem, or anything else i
> state here?
bernd
--
http://www.pi-phi.de/cheatsheet.html
More information about the TYPO3-english
mailing list