[TYPO3] Marking required mailform fields with * after the label
Logi Huldar Gunnlaugsson
logi at postur.spuni.is
Thu Nov 30 12:15:42 CET 2006
Dear list,
I'm trying to add an asterisk (*) after label names of required form
fields using the default mailform. The result that I want is like this:
<label for="mailformName">Name<span class="field-req">*</span></label>
This is the TS I'm using:
###### TS Begin ####################################################
tt_content.mailform.20.layout = <div class="dFormItem">###LABEL###
###FIELD###</div>
tt_content.mailform.20.stdWrap.wrap = <div class="dMailform">|</div>
tt_content.mailform.20.REQ = 1
tt_content.mailform.20.REQ.labelWrap.wrap = |<span
class="field-req">*</span>
###### TS End ####################################################
The result is the following and is not what I want:
<label for="mailformName">Name</label><span class="field-req">*</span>
I have also tried this TS but the result is the same:
###### TS Begin ####################################################
tt_content.mailform.20.REQ.layout = <div
class="dFormItem">###LABEL###<span class="field-req">*</span>
###FIELD###</div>
###### TS End ####################################################
Any idea what I'm missing?
Cheers,
Logi
More information about the TYPO3-english
mailing list