

Sometimes you need to style the form elements that TYPO3 generate. But they doesn't have any class so it's har to differenciate between normal input filelds and submit buttons.
The solution is to add classes to the various form elements.
# Add classname to fields and buttons in standard mailform tt_content.mailform.20.params.input = class="mf-input" tt_content.mailform.20.params.password = class="mf-pass" tt_content.mailform.20.params.textarea = class="mf-text" tt_content.mailform.20.params.check = class="mf-check" tt_content.mailform.20.params.radio = class="mf-radio" tt_content.mailform.20.params.select = class="mf-select" tt_content.mailform.20.params.file = class="mf-file" tt_content.mailform.20.params.reset = class="mf-reset" tt_content.mailform.20.params.submit = class="mf-submit"
This snippet has been submitted by Peter Klein.




I used this code in the template setup.
Seems that it doesnt work.
Please help !
Thanks in advance...
Anand
I used this code in the template setup.
Seems that it doesnt work.
Please help !
Thanks in advance...
Anand
this is great but what if i want to add extra parameter for a specific input field.
thanks in advance,
lova
Add comment