Hello!
I am glad to announce a new small extension, which allows you to define individual error messages for form fields in frontend forms (forms made with the form generator). With the help of an inserttag you can also decide where exactly you like to place the error messages. Using "error ids" you can group error messages to accomplish the display of just one message for similar errors (e.g. "Please fill in all mandatory fields"). You can even display different messages for missing mandatory fields and failed validations (e.g. "Please tell us your e-mail address" vs. "Please fill in a correct e-mail address").
After installing this extension, you have to change the templates "form.tpl" and "form_widget.tpl" - examples are found in "TL_FILES/dma_niceerrors". Basically you have just to turn off the system error messages by changing "$this->generateWithErrors" to "$this->generate" in form_widget.tpl and insert "{{formerrors::form_id}}" into form.tpl where you like the errors to appear.
The extension can be found in the extension repository:
http://www.typolight.org/extension-list ... 93.en.html
We are working with it since some months, so i think it can be considered stable - although i'd like to wait for feedback before calling it officially stable.
Hope it will help someone!
Carsten Kollmeier
Bookmarks