[Typo3] mailformplus error-handling

thomas peter peter at bnt.de
Fri Apr 1 16:12:16 CEST 2005


Hi Jan, Hi Roland,

ok, now i got it. thank you both very much!

for the archive: my explanation of the whole thing:
(beware of the difference between markers and subparts!)

the ###ERROR### marker is responsible for the position of the
error-message (which says that there is an error) inside the
###TEMPLATE_FORM###-Subpart.

the ###ERROR_fieldname### markers are responsible for the positioning of
the concrete error-message (e.g. ###ERROR_email### is now the position
of the specific message that is defined via a ###ERROR_email###-subpart
in the ###TEMPLATE_ERROR###-subpart)

so you take care of the position of a message with the ###ERROR### and
###ERROR_value### markers inside the ###TEMPLATE_FORM###-Subpart.

in the ###TEMPLATE_ERROR###-subpart you can define the concrete
Messages, that should be inserted into the above positioned markers,
when specific errors occur.

and you can implement a general 'wrapper' around your error-codes with
###ERROR_START###-subpart and ###ERROR_END###-subpart (which is kind of
.before and .after in TypoScript)

cheers,
thomas



More information about the TYPO3-english mailing list