TAG | macina
24
How I add a separate searchbox on my TYPO3 website using indexed_search
0 Comments | Posted by henjo in design, typo3, usabillity
Basically what I do implementing a searchbox that needs to be an all pages, is using some plain typoscript to get this running well.
I used to use macina searchbox when I just started working with TYPO3, but getting more feeling with typoscript, I personally like using as less as extensions as possible.
So, how do I do it?
First of all, make sure you implement Indexed Search (setting up the indexing etc.). You really should read the documentation on that - although if you’re like me you’d like me post it here for you!
Second make sure you a subpart Marker (or when using TemplaVoila make sure you map the location to a typoscript object). Usually mine is named lib.searchbox.
Third thing you do is prepare some constants in your TS template:
plugin.tx_indexedsearch.searchUID = 2
plugin.tx_indexedsearch.showAdvanced = 0
The searchUID constant is the page containing your search results (your page with the indexed_search plugin on it).
In the setup you now use the following code to give you the searchbox.
Basecamp
Get me at Technoratie
Typo3










