Chapter 7: Comments
Handling Submission Errors
Problems
You are using comments and want to handle comment submission errors.
Solutions
Create a Comment Error template with the MTErrorMessage and
MTComment tags.
Discussion
Since the comment preview page is dynamically generated (even when using the traditional static publishing model), a special template is needed in the event that an error occurs. For example, if you have disallowed anonymous comments, and the user does not supply a name or email address, you can customize the error page that the user receives using the Comment Error Template. You can use this template to provide a form where users can fix whatever error has occurred in their submissions and then re-post (or preview) the comment.
This template should include a MTErrorMessage tag and a
form that allows you to edit the comment so that you can correct the error.
This form is constructed using the same tags as in the Comment Preview
Template.
With template tags and web forms in place, checking the "Allow Comments" option of an entry and saving it will enable comments to be received.



