[TYPO3] mailform <form> tag: wrap it or add class="someclass"

Darko Jr. Gonzalez jkokino at gmail.com
Wed May 21 23:43:26 CEST 2008


Hey folks

I am trying to add to the mailform <form> tag either:
- class="someclass" instead of just id which comes from formName
and/or
- wrap the whole form with for example <junior>|</junior>

I tried:
stdWrap.wrap = <junior>|</junior>
but it is wrapping pretty much everything within the <form> tags, not 
outside (outer) wrapping.

this is what I have in ts setup:
##################################################
tt_content.mailform.20{
	accessibility = 1
	REQ = 1
	noWrapAttr = 1
	formName = theForm
	dontMd5FieldNames = 1
	# the () syntax in the wraps makes the html source a bit more readable
	layout (
		<p>###LABEL###</p> ###FIELD###
	)
	COMMENT.layout (
		<p>###LABEL###</p>
	)
	RADIO.layout (
		<p>###LABEL###</p>
		#<fieldset class="mf-radio" id="theForm_radio">###FIELD###</fieldset>
	)
	LABEL.layout = <p>###LABEL###</p> ###FIELD###
	labelWrap.wrap = |
	commentWrap.wrap = |
	radioWrap.wrap = <label>|</label>
	REQ.labelWrap.wrap = |
	#params = class="cssform"
	params.radio =
	params.check =
	params.submit =
	stdWrap.wrap = <junior>|</junior>
}

Thanks for looking


Regards,
Darko


More information about the TYPO3-english mailing list