[TYPO3] mailform and classes question.

Roelof Wobben rwobben at hotmail.com
Sun May 20 13:43:20 CEST 2007


Hello,

I use the standard mailform of t3 and i use this TS :

tt_content.mailform.20 {
  accessibility = 1
  noWrapAttr=1
  formName = form1
  dontMd5FieldNames = 1
  REQ = 1
  layout = <div>###LABEL### ###FIELD###</div>
  COMMENT.layout = <div>###LABEL###</div>

  ### doppeltes LABEL
  // RADIO.layout = <div>###LABEL### ###FIELD###</div>
  RADIO.layout = <div class="radiolayout">###FIELD###</div>

  LABEL.layout = <div>###LABEL### ###FIELD###</div>


  ### nach jeden Optionsfeld ein Umbruch, lässt man den weg, sind
  ### die Optionsfelder nacheinander
  radioWrap.wrap = |<br />

  ### Das selbe gilt für benötigte Felder in Formularen
  stdWrap.wrap =  <p>|</p>
}


### Des weiteren habe ich für die einzelnen durch CSS definierten
### Input, Select, etc. Klassen, ebenfalls im Setup von TYPO3

tt_content.mailform.20 {
  params >
  params.input = class="fields_contact_us"
  params.password = class="mf-pass"
  params.textarea = class="mf-text"
  params.check = class="mf-check"
  params.radio = class="mf-radio"
  params.select = class="mf-select"
  params.file = class="mf-file"
  params.reset = class="mf-reset"
  params.submit = class="submit_button_contact"
}

But now the mailform html looks like this :
<form action="index.php?id=160" id="form1" name="form1" 
enctype="multipart/form-data" method="post" target="page" onsubmit="return 
validateForm('form1','Naam,Naam%20%3Cbr%3E,Email_adres,E-mail%20adres%3Cbr%3E,Mededelingvraag,Mededeling%2Fvraag%3Cbr%3E','','','')"><div 
style="display:none;"><input type="hidden" name="html_enabled" 
id="form1html_enabled" value="" /><input type="hidden" name="subject" 
id="form1subject" value="Tamara Wobben" /><input type="hidden" 
name="locationData" value="160:tt_content:136" /></div>

what i need is this  :

<form action="index.php?id=160" id="form1" name="form1" class="classname" 
enctype="multipart/form-data" method="post" target="page" onsubmit="return 
validateForm('form1','Naam,Naam%20%3Cbr%3E,Email_adres,E-mail%20adres%3Cbr%3E,Mededelingvraag,Mededeling%2Fvraag%3Cbr%3E','','','')"><div 
style="display:none;"><input type="hidden" name="html_enabled" 
id="form1html_enabled" value="" /><input type="hidden" name="subject" 
id="form1subject" value="Tamara Wobben" /><input type="hidden" 
name="locationData" value="160:tt_content:136" /></div>

How can i achieve this ??

Regards,

Roelof

_________________________________________________________________
Wil jij MSN reporter zijn? Deel jouw nieuws en verhalen hier! 
http://reporter.msn.nl/



More information about the TYPO3-english mailing list