


Sometimes it is necessary to format or position every field of a form. Without configuration TYPO3 outputs following:
<div class="csc-mailform-field"><label for="mailformname">name:</label> <span class="csc-mailform-label"><input type="text" name="name" id="mailformname" size="20" value="" /></span></div>
When using the following typoscript snippet the output is this:
<div class="csc-mailform-field feld-name"><label for="mailformname">name:</label> <span class="csc-mailform-label"><input type="text" name="name" id="mailformname" size="20" value="" /></span></div>
This snippet adds to the surrounding div tag a new CSS class that is generated in the form field-fieldname.
tt_content.mailform.20{ commentWrap.cObject=COA commentWrap.cObject{ 20=TEXT 20.value=field-{current:1} 20.insertData=1 } layout( <div class="csc-mailform-field ###COMMENT###">###LABEL### <span class="csc-mailform-label">###FIELD###</span></div> ) }


Comments (0)