How to configure index search in typo3 via typoscript


 
Integrated search. TYPO3 automatically indexes your content to make it searchable in the backend and frontend with the built-in search tools.

Index search is very usefull tool in typo3.

If you want to integrate it on fronend site then you first you have to install index_search exntension.

if you want to display search box via typo script then you have to set below typoscript in your setup file.

lib.searchBox = HTML
lib.searchBox.value(
  <form name="tx_indexedsearch" method="post" action="index.php?id=19">
    <input type="text" id="tx_indexedsearch[sword]" name="tx_indexedsearch[sword]" />
    <input type="hidden" value="0" name="tx_indexedsearch[_sections]">
    <input type="hidden" value="0" name="tx_indexedsearch[pointer]">
    <input type="hidden" value="0" name="tx_indexedsearch[ext]">
    <input type="hidden" value="_" name="tx_indexedsearch[_freeIndexUid]">
  </form>
)

** index.php?id=19 : is stand for page id 19. where we integrate index search plugin.

If you have any queries, please do not hesitate to contact me at Jainish Senjaliya

 


 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s