user-pic

Entry-Specific Comment RSS Feed

Vote 0 Votes

I'd like to be able to provide an RSS feed of the comments for each entry published on my blog. Any ideas on how to pull that off?

I'm running MT 4.23.

Thanks!

Reported on Movable Type 4.2

11 Replies

| Add a Reply
  • Yeah. Just create a new entry listing archive based around an RSS template.

  • Cool, thanks. Any examples or walk-throughs you can point me to?

  • I only ask because everything Google returns on the topic is pretty old.

    • That would probably be because nothing's really changed about how to do it. If you're feeling paranoid, paste a link or two here, but it's most likely that you can just use whatever you've found, though if they provided a template, I'd base it off a more recent feed template instead.

  • Clifton -

    I'm trying to do the same thing as you, provide an RSS feed for comments on each entry. Did you find a way to do this?

    Any help is appreciated.

    Thanks.

    Andrew

  • Hi Andrew,

    I was able to build the RSS Comments template, but I never figured out how to incorporate it into an Entry page so that it creates the appropriate RSS feed link for each Entry.

    Here's the template code:

     <?xml version="1.0" encoding="<$MTPublishCharset$>"?>
    <feed xmlns="http://www.w3.org/2005/Atom" 
          xmlns:thr="http://purl.org/syndication/thread/1.0">
      <link rel="alternate" type="text/html" href="<$MTArchiveLink encode_xml="1"$>" />
      <link rel="self" type="application/atom+xml" href="<$MTBlogURL$>atom.xml" />
      <id>tag:<$MTBlogHost exclude_port="1" encode_xml="1"$>,<$MTDate format="%Y"$>:<$MTBlogRelativeURL encode_xml="1"$>/<$MTBlogID$>/<$MTEntryAtomID$>-</id>
      <updated><MTComments lastn="1"><$MTDate utc="1" format="%Y-%m-%dT%H:%M:%SZ"$></MTComments></updated>
      <title>Comments for <$MTArchiveTitle remove_html="1" encode_xml="1"$></title>
      <MTIfNonEmpty tag="MTBlogDescription"><subtitle><$MTBlogDescription remove_html="1" encode_xml="1"$></subtitle></MTIfNonEmpty>
      <generator uri="http://www.sixapart.com/movabletype/">Movable Type <$MTVersion$></generator>
      <entry>
        <id><$MTEntryAtomID$></id>
        <link rel="alternate" type="text/html" href="<$MTEntryPermalink encode_xml="1"$>" />
        <link rel="service.edit" type="application/atom+xml" href="<$MTCGIPath$><$MTAtomScript$>/weblog/blog_id=<$MTBlogID$>/entry_id=<$MTEntryID$>" title="<$MTEntryTitle encode_html="1"$>" />
        <published><$MTEntryDate utc="1" format="%Y-%m-%dT%H:%M:%SZ"$></published>
        <updated><$MTEntryModifiedDate utc="1" format="%Y-%m-%dT%H:%M:%SZ"$></updated>
        <title><$MTEntryTitle remove_html="1" encode_xml="1"$></title>
        <summary><$MTEntryExcerpt remove_html="1" encode_xml="1"$></summary>
        <author>
          <name><$MTEntryAuthorDisplayName encode_xml="1"$></name>
          <MTIfNonEmpty tag="MTEntryAuthorURL"><uri><$MTEntryAuthorURL encode_xml="1"$></uri></MTIfNonEmpty>
        </author>
        <MTEntryCategories>
        <category term="<$MTCategoryLabel encode_xml="1"$>" />
        </MTEntryCategories>
        <content type="html" xml:lang="<$MTBlogLanguage ietf="1"$>" xml:base="<$MTBlogURL encode_xml="1"$>">
          <$MTEntryBody encode_xml="1"$>
          <$MTEntryMore encode_xml="1"$>
        </content>
      </entry>
    <MTComments>
      <entry>
        <id><$MTEntryAtomID$>-comment:<$MTCommentID$></id>
        <thr:in-reply-to ref="<$MTEntryAtomID$>" type="text/html" href="<$MTEntryPermalink encode_xml="1"$>"/>
        <link rel="alternate" type="text/html" href="<$MTEntryPermalink encode_xml="1"$>#c<$MTCommentID$>" />
        <title>Comment from <$MTCommentAuthor encode_xml="1"$> on <$MTCommentDate format="%Y-%m-%d"$></title>
        <author>
            <name><$MTCommentAuthor encode_xml="1"$></name>
            <uri><$MTCommentURL encode_xml="1"$></uri>
        </author>
        <content type="html" xml:lang="<$MTBlogLanguage ietf="1"$>" xml:base="<$MTCommentURL encode_xml="1"$>">
            <$MTCommentBody encode_xml="1"$>
        </content>
        <published><$MTCommentDate utc="1" format="%Y-%m-%dT%H:%M:%SZ"$></published>
      </entry>
    </MTComments>
    </feed>
    
    


  • Judging by this thread, I'm assuming there is no single-entry comments feed provided out of the box by Movable Type? I read a few blogs using Movable Type that I'd like to subscribe to entry comments, but I don't know the bloggers well enough to ask that they modify their code for my convenience. On WordPress blogs I can just add "/feed" to the end of the post URL, because WP includes comment feeds without any modification. Is there no equivalent on Moveable Type?

Add a Reply

If you need to share template code, replace all the "<" signs with "&lt;" or use this utility.

Forum Groups

1773 6162

Last Topic: Excluding categories from blog by kholechek on Feb 9, 2012

86 302

Last Topic: website entries by masoud on Oct 26, 2011

1429 5077

Last Topic: What apocalypse hit this community in the middle of 2011? by 75th on Feb 10, 2012

695 2910

Last Topic: Insert Image / File Fails by Russ Miller on Feb 10, 2012

84 291

Last Topic: How to have some other characters in entry basename automatically written by Afshin Haghighatnia on Dec 22, 2011

173 737

Last Topic: About the MT version stated in HTML source by Alex E. Schneider on Feb 7, 2012

190 567

Last Topic: Analytics Reporting by michael webster on Feb 5, 2012

48 210

Last Topic: An idea and also a request by Afshin Haghighatnia on Jun 29, 2011

64 246

Last Topic: jQuery in MT 5.1 still at 1.4 - why? by perlmonkey on May 25, 2011

code.sixapart.com

137 478

Last Topic: Getting a thumbnail with xpath by Peter on Mar 13, 2011

222 720

Last Topic: Custom Field for Asset Not Appearing by android on Feb 9, 2012