Posted By

arnekolja on 06/27/10


Tagged


Versions (?)

TypoScript basics for forms


 / Published in: TYPO3
 

These are some basic TS settings for the standard forms module.

  1. # change ordering of label+checkbox for standard forms
  2. tt_content.mailform.20.CHECK.layout = <div class="csc-mailform-field-checkbox">###FIELD### ###LABEL###</div>
  3.  
  4. # change html output for required form markers. The following example places the asterisk at the end of the form field
  5. tt_content.mailform.20.REQ.labelWrap.wrap=|*
  6.  
  7. # JavaScript popup error message for form fields
  8. tt_content.mailform.20.badMess = Please fill out the following fields:
  9.  
  10.  
  11. # own CSS class for every form field
  12. tt_content.mailform.20 {
  13. commentWrap.cObject = COA
  14. commentWrap.cObject {
  15. 20=TEXT
  16. 20.value = field-{current:1}
  17. 20.insertData=1
  18. }
  19. layout(
  20. <div class="csc-mailform-field ###COMMENT###">###LABEL### <span class="csc-mailform-label">###FIELD###</span></div>
  21. )
  22. }

Report this snippet  

Comments

RSS Icon Subscribe to comments
Posted By: Vordreller on June 27, 2010

Isn't this actually Javascript?

You need to login to post a comment.