[TYPO3-english] [indexed Search] Search results for level2 and further deep level3 and so on
Javier Moñiz
javiermoniz at gmail.com
Tue Jan 10 09:51:06 CET 2012
TYPOSCRIPT SETUP FOR SECOND LEVEL RESEARCH AND FURTHER
I've been trying to perform a research , from root level 2 (rl2_ from
now on) with the indexed search.Althought I managed to include level2
items at the
< select name="tx_indexedsearch[sections]">....
i couldnt achieve this without touching the code of the extension in
/typo3conf/ext/indexed_search/pi/class.tx_indexedsearch.php at line
317 by changing
if ($this->conf['show.']['L2sections']) { .....
to
if (1)
as my typoscript is not recognized by the extension or at least the
part of the L2sections which is defined as true or 1 to be more
precise.
here is my typoscript.
##begin typoscript indexed search config.
age.config.index_enable = 1
page.config.index_externals = 1
plugin.tx_indexedsearch{
search.rootPidList = {$idAccueil}
templateFile = {$search_template_file}
show.rules = 0
show.LxALLtypes = 1
blind.results = 1
results_at_a_time = 10
rootRubs = 5
show.L1Sections = 1
show.L2Sections = 1
show.L3Sections = 1
//excludeFromLevel1 = 31
forwardSearchWordsInResultLink = 1
L1= {$espagnol}
L2= {$anglais}
L3= {$allemand}
L4= {$portugais}
L5= {$italien}
L6= {$polonais}
L7= {$neerlandais}
L8= {$tcheque}
L9= {$danois}
L10= {$slovaque}
L11= {$roumain}
L12= {$slovene}
L13= {$turque}
}
plugin.tt_news.allowCaching = 1
##end typoscript
SOLUTION FOR TYPOSCRIPT NOT INCLUDING SECOND AND THIRD LEVEL MENUS
I managed to introduce second level and third level research using
Jquery. I set the value for the < select
name="tx_indexedsearch[sections]">.... to rl3_pagenumber with it.
THE PROBLEM
I can only get good filtered results for first level . if i search for
example for the word "test" fopr all the site ,i would get 16 results,
but if i search for that word at the rl1_ branch "X" where it appears
i would get 2 results till here all is correct.
Now i perform that search at a rl2_ , at rl2 branch i get no results,
and further down at that branch there are the 14 other results!!.
When i perform the research at rl3_ i get again all 16 results as if i
had performed the search at a rl1_
Has someone please come throught this and solved it ? any ideas of
where to touch and what to do to be able to obtain properly filtered
results from rl2+ and their branches? am i trying to do something this
extension is not prepared to do _?
Thanks folks !
More information about the TYPO3-english
mailing list