[TYPO3] EXT Develop form help

Peter Klein peter at umloud.dk
Mon Feb 12 09:16:13 CET 2007


Hi Rocky.
Use the "HTML template processing functions" from the class "tslib_cObj".

Some examples can be found here:
http://wiki.typo3.org/index.php/Extension_Development,_using_HTML-Templates

and here:
http://www.hachmeister.org/en/typo/tutorials/development/create-your-own-frontend-plugin/?tx_kharticlepages_pi1%5Bpage%5D=4&cHash=e28fe53b63

-- 
Peter Klein/Umloud Untd


"rocky Ou" <rockysynergy at max-source.com> skrev i en meddelelse 
news:mailman.1.1171265957.17761.typo3-english at lists.netfielders.de...
> Hey All,
>
> At the FE of my plugin there's a dropdown selection input and a submit
> button. If I put all the content in myext/pi1/class.myext.php I can put
> the form in the following format to get
> $this->pi_Var['submit_buttonaddtip'].
>
> /*************SNIP BEGIN**************************/
>  <h5>Add coaching notes for '.$name.':</h5>
> <form
> action="'.$this->pi_linkTP_keepPIvars_url($overrulePIvars=array('name'=>''.$name.''),$cache=0,$clearAnyway=0,$altPageId=0).'"
> method="POST">
> <input type="hidden" name="no_cache" value="1">
> <input type="hidden" name="'.$this->prefixId.'[DATA][coach]"
> value="'.$coach.'">
>                                 <lable
> for="'.$this->prefixId.'[DATA][tip]">Session Date and Notes:</lable>
> <textarea name="'.$this->prefixId.'[DATA][tip]"></textarea>
>                                 <lable
> for="'.$this->prefixId.'[DATA][message]">Remember to Ask the 
> Client:</lable>
> <textarea name="'.$this->prefixId.'[DATA][message]"></textarea>
> <input type="submit" name="'.$this->prefixId.'[submit_buttonaddtip]"
> value="Submit" class="submit">
> /***************SNIP END *******************/
>
> Now I want put the form template into myext.tmpl. Can you tell me how
> can I re-write the template file to accomplish the same thing please?
>
> Thanks in advance!
> Rocky 




More information about the TYPO3-english mailing list