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

Carlos Meyer cm at neonblue.de
Thu Jan 22 13:27:53 CET 2009


I solved the problem by using the normal submit button:

		<renderlet:SEARCHFORM name="search_companies"
renderonly="true">  
            <datasource use="ds-tx_txschoolcompanies_objects_list" />  
            <childs>  
   
                 <renderlet:TEXT name="searchfield">  
                     <search onfields="name_of_company, services" />  
                </renderlet:TEXT>
                
 				<renderlet:SUBMIT label="   " mode="search"
name="searchbutton"/>                
   
             </childs>  
         </renderlet:SEARCHFORM>

I changed the FE output via CSS:

#content div#company_search input#view-video_searchbutton {
	border:none;
	background-color:transparent;
	width:22px;
	height:20px;
	background-image:url(path_to_bg_image);
	background-repeat:no-repeat;
	cursor:hand;
	cursor:pointer;	
}

Regards 

Carlos



-----Ursprüngliche Nachricht-----
Von: typo3-project-formidable-bounces at lists.netfielders.de
[mailto:typo3-project-formidable-bounces at lists.netfielders.de] Im Auftrag
von Carlos Meyer
Gesendet: Mittwoch, 21. Januar 2009 20:44
An: typo3-project-formidable at lists.netfielders.de
Betreff: [TYPO3-project-formidable] Use SEARCHFORM with a IMAGE Submit

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  


_______________________________________________
TYPO3-project-formidable mailing list
TYPO3-project-formidable at lists.netfielders.de
http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-project-formidabl
e



More information about the TYPO3-project-formidable mailing list