[Typo3] search in main template

Joshua Preston jpreston at americatab.com
Mon May 30 22:31:29 CEST 2005


Ulrich,

Yes, you can!

I did it by doing adding the following to my template:

temp.searchForm = TEXT
temp.searchForm.value (
    <center>
        <p><font color="white">:: Search ::</font></p>
        <form action="index.php?id=***pid***&amp;no_cache=1" 
enctype="multipart/form-data" method="post" target="_top">
            <input type="hidden" name="stype" value="L0" />
            <input type="hidden" name="locationData" 
value="***startingpagepid***:tt_content:***resultpagepid***" />
            <input type="hidden" name="scols" 
value="tt_content.header-bodytext-imagecaption" />
            <input type="text" name="sword" size="15" value="" /><br/><br/>
            <input type="submit" value="Search now!">
        </form>
    </center>
)

Of course, you'll need to fix the **pid** ; **startingpagepid** ; 
**resultpagepid** but all should be good!

Thanks!

Joshua Preston.

Ulrich Jørgensen wrote:

>Can I put the search field, and only the search field (and button
>off-course), from Indexed-Search in my html template?
>  
>
-- 
"Programming today is a race between software engineers
striving to build bigger and better idiot-proof programs,
and the Universe trying to produce bigger and better idiots.
So far, the Universe is winning."

-- Rich Cook.



More information about the TYPO3-english mailing list