The Movable Type User Manual

NOTE: This documentation is for Movable Type 3.2. If you are using a newer version, please see the documentation for Movable type 3.3x or Movable Type Enterprise.

« Creating a Comment Submission Form | Up | Publishing Queued Comments »

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.

Submit Feedback on This Article

Your comments on how we can improve this article are appreciated; but please do not use the feedback form to submit support requests or question. We will not respond to or publish such queries submitted through this form. If you have a technical question or problem, visit Movable Type Support.

Six Apart
Makers of weblog software and services for individuals, organizations and businesses.
This website is powered by Movable Type.