[Typo3] search in main template

Darren Sprott typo3 at dsol.com.au
Tue May 31 01:19:40 CEST 2005


Hi Ulrich

This is fairly easy to implement. I just used the following code within 
my html template:

<td width="150" valign="top" id="search"><form 
action="../../index.php?id=42" method="POST" name="tx_indexedsearch">
<p class="text10px">Search for:<br>
<input type="text" name="tx_indexedsearch[sword]" value="" 
class="tx-indexedsearch-searchbox-sword" style="width:125px;"><br>
<input type="submit" name="tx_indexedsearch[submit_button]" 
value="Search Site" class="tx-indexedsearch-searchbox-button">
<input type="hidden" name="tx_indexedsearch[_sections]" value="0">
<input type="hidden" name="tx_indexedsearch[pointer]" value="0">
<input type="hidden" name="tx_indexedsearch[ext]" value="0"></p>
</form></td>

Just change the form action to point to your search page. ie.
<form action="../../index.php?id=(replace with pid of search page)" 
method="POST" name="tx_indexedsearch">



More information about the TYPO3-english mailing list