• Currently 0/5
  • 1
  • 2
  • 3
  • 4
  • 5
Comment Author Context


In the context of a comment, all <$mt:AuthorSOMETHING$> function tags refer to the author of the entry or page where the comments were left. This default behavior in Movable Type (as of MT4.25) creates a situation where it is never possible to output author data for a commenter.


The CommentAuthorContext plugin creates a block tag called <mt:CommentAuthorContext> in which <$mt:AuthorSOMETHING$> function tags will refer to the author of the comment.


  1. Create a "user" CustomField. We'll use <$mt:AuthorDataTwitter$> for this example.
  2. Place the <mt:CommentAuthorContext> block tag inside the <mt:Comments> tag block (typically in the entry or page detail template).
  3. Place your "user" CustomFields inside the <mt:CommentAuthorContext> tag block.

Final code might look something like this:

        <a href="http://twitter.com/<$mt:AuthorDataTwitter$>/"><$mt:AuthorDataTwitter$></a>
        I'm an anonymous commenter