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.

« Category | Up | Comment preview »

Chapter Comment listing

In this section:


The name of the author of the comment.

  • default

    If a name is not given, the value of this attribute will be used.

A link to the author's profile within the configured TypeKey authentication system.

A linked version of the comment author name, using the comment author's URL if provided in the comment posting form. Otherwise, the comment author name is unlinked. This behavior can be altered with optional attributes:

Attributes:

  • show_email - Specifies if the comment author's email can be displayed. The default is false (0).
  • show_url - Specifies if the comment author's URL can be displayed. The default is true (1).

Can this be spam protected?

The body of the comment. If any text formatting has been specified it will automatically be applied.

  • convert_breaks

    Controls the application of text formatting. By default convert_breaks is 1 (true).

The timestamp of when the comment was submitted. Date format tags may be applied with the format attribute along with the language attribute. See Appendix C.

The email address of the comment author. The spam_protect global filter may be used.

A container tag that creates a context to the entry associated with the comment.

Example

<MTComments lastn="10">
    <a href="<$MTEntryPermalink$>#comment-<$MTCommentID$>">
            <$MTCommentAuthor$>
    </a>

    commented on 

    <MTCommentEntry>
        <a href="<$MTEntryPermalink$>"><$MTEntryTitle$></a>
    </MTCommentEntry>
</MTComments>

The numeric system ID of the entry associated with the comment.

Outputs a standard comments form in HTML for all comments and authentication settings.

  • preview

    Setting this attribute to true (1) specifies that the form is being generated for a comment preview. The default is 0 (false).

The numeric system ID of the comment.

  • pad

    Adds leading zeros to create a 6 character string. The default is 0 (false). This is equivalent to using the zero_pad global filter with a value of 6.

The IP (Internet Protocol) network address the comment was submitted from.

The placement of the comment in numerical order beginning at 1. This value is dependent on the sort order being used.

A context dependent container tag representing a list of comments on an entry or for a weblog.

  • lastn

    Display the last N comments in context. N is a positive integer. lastn is optional in an entry context and required in a weblog context. When used in an entry context, all comments associated to the entry is displayed by default

  • sort_order

    Specifies the sort order and overrides the General Settings. Recognized values are "ascend" and "descend."

The contents of this container tag will be displayed when the last comment listed by a MTComments tagset is reached.

The contents of this container tag will be displayed when the first comment listed by a MTComments tagset is reached.

The URL of the comment author.

The composite score of a comment or TrackBack after junk filtering.

Conditional tag that displays its contents if commenting is enabled for the entry in context.

Related:

Conditional tag that displays its contents if comments are enabled or comments exist for the entry in context.

Related:

Conditional tag that displays its contents if HTML code is allowed in comment bodies.

Related:

Conditional tag that displays its contents if comment submissions are moderated before being published.

Related:

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