我完全遵循了typo3 formhandler“how-to-set-up-a-simple-form”。 standaard表格有效,但当我添加验证部分时,表格帖子会显示白色屏幕。我使用下面的typoscript。是什么原因导致来自验证后的白屏?
plugin.Tx_Formhandler.settings {
validators.1.class = Validator_Default
validators.1.disabled = 0
validators.1.config.fieldConf {
message.errorCheck.1 = required
message.errorCheck.2 = minLength
message.errorCheck.2.value = 5
sender_name.errorCheck.1 = required
sender_email.errorCheck.1 = required
sender_email.errorCheck.2 = email
}
addErrorAnchors = 1
singleErrorTemplate {
totalWrap = |
singleWrap = <span style="color: red;">|</span>
}
errorListTemplate {
totalWrap = <div style="color: red;">Es sind folgende Fehler aufgetreten: <ul>|</ul></div>
singleWrap = <li>|</li>
}
debug = 0
langFile = fileadmin/templates/sandraverdijck/lang/lang-contactform.xml
templateFile = fileadmin/templates/sandraverdijck/html/contactform.html
formValuesPrefix = formhandler
finishers {
1 {
class = Tx_Formhandler_Finisher_Mail
}
2 {
class = Tx_Formhandler_Finisher_SubmittedOK
config.returns = 1
}
}
}