Movable Type Documentation

Back to docs index

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.

Note: This tag only works where a comment is in context, such as within a <MTComments> or <MTEntryComments> container tag.

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).
  • new_window - Specifies to open the link in a new window by adding "target=_blank" to the anchor tag. See example below. The default is false (0).
  • default_name - Used in the event that the commenter did not provide a value for their name.

Example code:

<$MTCommentAuthorLink new_window="1"$>

would become

<a href="http://www.sixapart.com/" target="_blank">Six Apart</a>

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">
    <MTCommentEntry>
    <a href="<$MTEntryPermalink$>#comment-<$MTCommentID$>">

            <$MTCommentAuthor$>
    </a>

    commented on 

        <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.

The URL of the comment author.

A container tag which iterates over a list of comments on an entry or for a weblog. By default, all comments in context (e.g on an entry or in a weblog) are returned. When used in a blog context, only comments on published entries are returned.

Optional attributes

  • lastn - Display the last N comments in context where N is a positive integer. NOTE: lastn required in a weblog context.

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

  • blog_ids - This attribute allows you to aggregate comments from other blogs into your MTComments listing. Blogs are specified by their blog IDs in a comma-delimited fashion. (e.g. <MTComments blog_ids="1,12,19,37,112">). A value of all expands the context to all blogs in the installation. This feature is available only in Movable Type Enterprise.

Related

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 composite score of a comment or TrackBack after junk filtering.

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

For more details see the relevant section of Chapter 5.3 in the User and Administration Manual entitled "Conditional Tags".

You can download the User and Administration Manual here.

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

For more details see the relevant section of Chapter 5.3 in the User and Administration Manual entitled "Conditional Tags".

You can download the User and Administration Manual here.

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

For more details see the relevant section of Chapter 5.3 in the User and Administration Manual entitled "Conditional Tags".

You can download the User and Administration Manual here.

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

For more details see the relevant section of Chapter 5.3 in the User and Administration Manual entitled "Conditional Tags".

You can download the User and Administration Manual here.

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