[TYPO3-project-formidable] Use SEARCHFORM with a IMAGE Submit

Jerome Schneider typo3dev at ameos.com
Thu Jan 22 14:17:45 CET 2009


Hi Carlos,

I just added the possibility in the framework, starting with revision 
2.0.300 (fresh from this afternoon)

To use it, you have to define a renderlet submit, giving a file path 
under the /path property

Like this:

<renderlet:SEARCHFORM name="search-pages">
   <datasource use="ds-pages" />
   <childs>
     <renderlet:TEXT name="title" label="title" />
     <renderlet:SUBMIT
       name="imgSubmit"
       mode="search"
       path="http://www.google.com/intl/en_ALL/images/logo.gif"
     />
   </childs>
</renderlet:SEARCHFORM>

And don't forget to also define /mode=search on the renderlet, as we're 
submitting for a searchform.

The last version can be downloaded here, either as T3X or ZIP file:
http://formidable.typo3.ug/svn/changelog/revision-300.html

Best regards,
Jerome Schneider

Carlos Meyer a écrit :
> Hi everyone,
> 
> I want to use the renderlet SEARCHFORM with an IMAGE SUBMIT. I use this XML
> code: 
> 
> 		<renderlet:SEARCHFORM name="search_companies"
> renderonly="true">  
>             <datasource use="ds-tx_txschoolcompanies_objects_list" />  
>             <childs>  
>    
>                  <renderlet:TEXT>  
>                      <search onfields="name_of_company" />  
>                 </renderlet:TEXT>
>                 
> 		        <renderlet:IMAGE name="btnsubmit" label="Submit">
> 		
> 	
> <path>/typo3conf/ext/tx_school_companies/pi1/res/search_submit.gif</path>
> 		
> 		            <onclick>
> 		
> 		                <submit/>
> 		
> 		            </onclick>
> 		
> 	
> <custom>style=&quot;cursor:pointer;&quot;</custom>
> 		
> 		        </renderlet:IMAGE>                
>    
>              </childs>  
>          </renderlet:SEARCHFORM>
> 
> But this doesn't work. I get an error, that formidable want to insert into
> db. I just want to search.
> 
> Thanks for help
> 
> Carlos  
> 
> 


More information about the TYPO3-project-formidable mailing list