typoscript - Switch label and input in TYPO3 7.6 form -


in typo3 7.4 possible switch label , input in form. reason has been changed in 7.5 , 7.6.

class = form enctype = multipart/form-data id = contact method = post layout {             checkbox (                     <input />                     <label />             ) } prefix = tx_form confirmation = 0 

is known bug or there new way this?

any appreciated.

ext:form rewritten in 7.5. whole frontend rendering replaced extbase , fluid.

unfortunately, not changes have been documented, yet. weeks ago, did major cleanup of documentation can found here: https://docs.typo3.org/typo3cms/extensions/form/. layout section more interesting you. linked document explain, how set view specific layout.

but using .layout stuff via typoscript not best way anymore, when comes customization of layout in typo3 7.6. changelog shows, should use fluid. following examples depicts form of new features. i'm setting globally additional partial path. possible set partial path specific form element (see element "900").

plugin.tx_form {     view {         # set additional partial path         partialrootpaths.20 = ext:generic_lib/resources/private/extensions/form/partials/     } }  # build contact form lib.default_contact_form = form lib.default_contact_form {     prefix = {$content.mailform.prefix}     confirmation = 1     # want work on clean base without .layout settings     compatibilitymode = 0      postprocessor {         1 = mail         1 {             recipientemail = {$content.mailform.recipientemail}              sendernamefield = name             senderemailfield = email              ccemail = text             ccemail {                 # depends on fact email required , tested                 data = gp:tx_form_form|{$content.mailform.prefix}|email                 htmlspecialchars = 1             }              subject = text             subject {                 value = [{$website.title}] - kontakt                 lang.en = [{$website.title}] - contact                 lang.es = [{$website.title}] - contacto                 lang.it = [{$website.title}] - contatto             }         }          2 = redirect         2.destination = {$content.mailform.redirectpage}     }      10 = textline     10 {         name = name         required = required         type = text         label.data = lll:ext:my_ext/resources/private/language/form/locallang.xlf:name         placeholder.data = lll:ext:my_ext/resources/private/language/form/locallang.xlf:name     }      20 = textline     20 {         name = email         type = email         required = required         label.data = lll:ext:my_ext/resources/private/language/form/locallang.xlf:email         placeholder.data = lll:ext:my_ext/resources/private/language/form/locallang.xlf:email     }      30 = textarea     30 {         name = message         cols = 40         rows = 5         required = required         data-foo = bar         label.data = lll:ext:my_ext/resources/private/language/form/locallang.xlf:message         placeholder.data = lll:ext:my_ext/resources/private/language/form/locallang.xlf:message     }      900 = textline     900 {         name = honeypot         type = text         label.data = lll:ext:my_ext/resources/private/language/form/locallang.xlf:spam         placeholder.data = lll:ext:my_ext/resources/private/language/form/locallang.xlf:spam         autocomplete = off         partialpath = flatelements/honeypot         # hide field in confirmation , mail views         visibleinconfirmationaction = 0         visibleinmail = 0     }      1000 = submit     1000 {         name = submit         value.data = lll:ext:my_ext/resources/private/language/form/locallang.xlf:submit         class = button     }      rules {         1 = required         1 {             element = name             message.data = lll:ext:my_ext/resources/private/language/form/locallang.xlf:required             error.data = lll:ext:my_ext/resources/private/language/form/locallang.xlf:mandatory         }          2 = email         2 {             element = email             message = (max.muster@domain.com)             error.data = lll:ext:my_ext/resources/private/language/form/locallang.xlf:mandatory_email         }     } } 

you can join typo3.slack.com , open ext-form channel, if need further assistance. on there, find more examples , instant help.


Comments

Popular posts from this blog

routing - AngularJS State management ->load multiple states in one page -

python - GRASS parser() error -

Swift game error message -