[TYPO3-english] Searchbox for standard search

Historia historia1 at historia-web.de
Mon Jan 23 16:02:25 CET 2012


I am using a template based on the introductionpackage and tried to 
implement the standard search box instead of the indexed search.

I put the data from the search box on every page. But there are no results.
Sorry, your search was empty!
The content of my search field is then in the searchfield of the 
searchpage and by executing the search there, it finds the correct pages.

lib.searchbox {
   stdWrap.prefixComment = 2 | lib.searchbox
   10 = TEXT
   10.wrap = <form action="|" method="post" id="mailform" 
enctype="multipart/form-data" name="mailform" onsubmit="return 
validateForm('mailform','','','','')><fieldset>
   20 = COA
   20 {
       10 = TEXT
       10.value = <input type="hidden" name="stype" id="mailformstype" 
value="L0" />
       20 = TEXT
       20.value =<input type="hidden" name="locationData" 
value="tt_content.header-bodytext-imagecaption" />
       30 = TEXT
       30.value =<input type="hidden" name="scols" 
value="pages.title-subtitle-keywords-description" />
       40 = TEXT
       40.data = GP : tx_indexedsearch |sword
       40.htmlSpecialChars = 1
       40.wrap = <input type="text" name="sword" id="mailformsword" 
size="13" value="|" 
style="background-color:transparent;padding-left:20px;border:0;" />
       50 = TEXT
       50.value = <input type="image" 
src="{$filepaths.templates}images/bg_searchButton.gif" id="inputButton" 
alt="Search" title="Search" />
       60 = TEXT
       60.value = <input name="submit" value="Search" type="hidden" />
   }
   wrap = |</fieldset></form>
}


More information about the TYPO3-english mailing list