[Typo3] Trying to get submit button of the mailform to get classed to its own class

Vlatko Šurlan vsurlan at REMOVECAPITALSnet.hr
Thu Jul 28 12:13:15 CEST 2005


Vlatko Šurlan wrote:
> I've place the following ts into the setup field of my root template:
> # Separating css class for submit button
> tt_content.mailform.20 { params.submit = class = "csc-form-submit" }
> 
> But this has the effect of the mailform not showing at all. How can I 
> tell typo to put the submit button to its own css class? I use the 
> following extensions: css_styled_content, automaketemplate, htmlcssstyling.

Made it. For some reason, I had to put more setup fields I found in the 
example setup for the mailform field. Why? This is the final version:

tt_content.mailform.20 {
   layout = <tr><td>###LABEL###</td><td>###FIELD###</td></tr>
   stdWrap.wrap = <table class="mailform">|</table>
   params.check = class="mf-check"
   params.input = class="mf-input"
   params.submit = class="mf-submit"
   params.textarea = class="mf-textarea"
}

This is the config:
Ime i prezime: | *name = input,40 |
e-mail: | *email=input,40 |
Telefon: | *message=input,40 |
Poruka: | phone=textarea,30,5 |
Želim da me kontaktirate: | tv=check | 1

|formtype_mail = submit | Pošalji!
|html_enabled=hidden | 1
|subject=hidden| Poruka poslana putem kontakt forme

And this is the result: http://pvc-stolarija.hr/index.php?id=4



More information about the TYPO3-english mailing list