[TYPO3-english] indexed_search remember selected section

Muriel le Pair typo3 at strangefruit.nl
Mon Oct 13 13:30:50 CEST 2014


Hi,

I have altered the indexed_search template so that it displays some 
radiobuttons with sections to search in. So if you choose "News" you 
will only search in news articles:

<label>
   <input type="radio" name="tx_indexedsearch[sections]" value="rl1_615" />
   News
</label>

This works fine, but if you click submit the selected value is lost.

Is it possible to retrieve the selected section, or does it exist as an 
value in the template (like for instance the search word ###SWORD_VALUE###)

Because if I click on submit the following html is displayed (but I 
can't this part anywhere in the template):

<div class="tx-indexedsearch-whatis">Search for "<span 
class="tx-indexedsearch-sw">test</span>" in the section "News"</div>

--
kind regards,

Muriel le Pair






More information about the TYPO3-english mailing list