[TYPO3-UG Dutch] Probleem met extentie formhandler
Richard van den Bogaard
RM.vandenBogaard at ihcmerwede.com
Mon Aug 11 14:21:53 CEST 2014
Ik heb in de extentie formhandler een formulier gemaakt en ik krijg bij gebruik van de validators de volgende errors (debug = 1)
"
Could not find error message with key "error_title_required"!
Could not find error message with key "error_description_required"!
Could not find error message with key "error_action_description_required"!
"
Voor het formulier heb ik drie bestanden in de folder fileadmin/formhandler, namelijk actionInput.tss, actionInput.html en actionInput.xml
In het tss bestand verwijs ik naar het xml bestand zoals de tutorial en toch geeft de debug aan dat hij de error messages niet kan vinden:
Code in actionInput.tss:
plugin.Tx_Formhandler.settings {
debug = 1
storeGP = 1
templateFile = fileadmin/formhandler/actionInput.html
langFile = fileadmin/formhandler/actionInput.xml
formValuesPrefix = formhandler
..
validators.1 {
class = Tx_Formhandler_Validator_Default
disabled = 0
config {
fieldConf {
title.errorCheck {
1 = required
}
description.errorCheck {
1 = required
}
action_description.errorCheck {
1 = required
}
}
}
}
Code in actionInput.xml:
<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
<T3locallang>
<data type="array">
<languageKey index="default" type="array">
<label index="error_title_required">The title is missing</label>
<label index="error_description_required">The description is missing</label>
<label index="error_action_description_required">There is no action desc</label>
</languageKey>
</data>
</T3locallang>
Debug log:
Tx_Formhandler_Controller_Form
Current step is: 2
Highest step subpart found in template file (number of steps):
Using prefix for form values: "formhandler"
Using view "Tx_Formhandler_View_Form"
The current GET/POST params are:
submitted 1
randomID a0ded0a8f0daee6cae29c592e22f47e4
removeFile
removeFileField
submitField
step-2-next Submit
created_by
status 1
title
description
action_by
action_description
due_date
priority 2
The current values in session are:
using_ajax
Calling class "Tx_Formhandler_Interceptor_Filtreatment"
Files:
Using subpart "###TEMPLATE_FORM1###"!
Tx_Formhandler_Validator_Default
Calling class "Tx_Formhandler_Errorcheck_Required"
Calling class "Tx_Formhandler_Errorcheck_Required"
Calling class "Tx_Formhandler_Errorcheck_Required"
Calling class "Tx_Formhandler_Errorcheck_Required"
Tx_Formhandler_View_Form
Could not find error message with key "error_title_required"!
Could not find error message with key "error_description_required"!
Could not find error message with key "error_action_description_required"!
Heeft iemand enig idee waar het probleem zit?
More information about the TYPO3-UG-Dutch
mailing list