[TYPO3-english] Standard Search Form Search Box TS object path
Sergey Alexandrov
serg at alexandrov.us
Tue Apr 19 18:43:14 CEST 2011
Just create a form in SETUP (or directly in your html template),
something like this one (change values of you need), then assign it to
the marker in your template.
Form's action is the search page alias
temp.search = HTML
temp.search.value (
<form class="search" action="/sitesearch" method="post" name="bsearch">
<input type="text" class="search" name="tx_indexedsearch[sword]"
value="" /><img src="/uploads/tf/go.gif" width="48" height="19"
align="absbottom" style="cursor:pointer"
onClick="document.bsearch.submit();" alt="Search" />
<input type="hidden" name="tx_indexedsearch[_sections]" value="0" />
<input type="hidden" name="tx_indexedsearch[_freeIndexUid]" value="_" />
<input type="hidden" name="tx_indexedsearch[pointer]" value="0" />
<input type="hidden" name="tx_indexedsearch[ext]" value="" />
<input type="hidden" name="tx_indexedsearch[type]" value="1" />
<input type="hidden" name="tx_indexedsearch[defOp]" value="0" />
<input type="hidden" name="tx_indexedsearch[media]" value="-1" />
<input type="hidden" name="tx_indexedsearch[order]" value="rank_flag" />
<input type="hidden" name="tx_indexedsearch[group]" value="flat" />
<input type="hidden" name="tx_indexedsearch[lang]" value="-1" />
<input type="hidden" name="tx_indexedsearch[desc]" value="0" />
<input type="hidden" name="tx_indexedsearch[results]" value="10" />
</form>
)
On 4/19/2011 12:35 PM, Igor Mitev wrote:
> Hello,
>
>
>
> I need to create a search box visible on all pages that can post data to
> TYPO3 standard Search Form content element.
>
> I tried to use the content element itself as TS object path but it displays
> the search results as well on the search page.
>
>
>
> Can anyone please tell me how to solve the problem?
>
>
>
> Best,
>
> Igor
> _______________________________________________
> TYPO3-english mailing list
> TYPO3-english at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english
More information about the TYPO3-english
mailing list