[TYPO3] where is my mailform rendering coming from

Lars Haendler typo3 at larshaendler.com
Mon Aug 25 13:32:44 CEST 2008


Hi,

Aaron Whittington wrote:
> 
> Hi all,
> 
> I'm trying to edit the rending of mailforms using typoscript:
> 
> tt_content.mailform.20.REQ.labelWrap = <p class="csc-form-label-req">|*</p>
> 
> I then noticed that my forms are not being generated according to the 
> rules in tt_content.mailform. For example, my forms are generated with 
> <div> tags rather than a table. This is very curious since deleting 
> tt_content.mailform does delete the forms.
> 
> Help is greatly appreciated.
> 
> Aaron
> 

If you like it table-based take this snippet:

tt_content.mailform.20 {
	stdWrap.wrap = <table width="490" cellpadding="2" cellspacing="1">|</table>
	layout = <tr><td valign="top">###LABEL###</td><td>###FIELD###</td></tr>
	CHECK.layout = <tr><td>&nbsp;</td><td>###FIELD### ###LABEL###</td></tr>
	labelWrap.wrap = |
	REQ.labelWrap.wrap = |<span class="required">*</span>
	params.input = class="form"
	params.password = class="form"
	params.textarea = class="form"
	params.select = class="form"
	params.file = class="form"
	params.submit = class="formbutton"
	#params.radio =
	#params.check =
	badMess = Folgende Felder müssen ausgefüllt werden:
}


More information about the TYPO3-english mailing list