ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

How to setup RSS for forum

January 29, 2010 4:57am

Subscribe [1]
  • #1 / Jan 29, 2010 4:57am

    Tammo

    59 posts

    Hi,

    I have a forum running and would like to set up a feed for the posts. I have the following link pointing to the feed: http://example.com/index.php/forums/rss/ and I have found the RSS page under the forum themes (I use developer).

    {?xml version="1.0" encoding="{encoding}" ?}
    <rss version="2.0"
        xmlns:dc="http://purl.org/dc/elements/1.1/"
        xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
        xmlns:admin="http://webns.net/mvcb/"
        xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
        xmlns:content="http://purl.org/rss/1.0/modules/content/">
        
        <channel>
        
        <title>{exp:xml_encode}{forum_name}{/exp:xml_encode}</title>
        <link>{forum_url}</link>
        <description>{exp:xml_encode}{forum_name}{/exp:xml_encode}</description>
        <dc:language>{forum_language}</dc:language>
        <dc:rights>Copyright {gmt_date format="%Y"}</dc:rights>
        <dc:date>{gmt_date format="%Y-%m-%dT%H:%i:%s%Q"}</dc:date>
        <admin:generatorAgent rdf:resource="http://expressionengine.com/" >
        
    {rows}
        <item>
          <title>{exp:xml_encode}{title}{/exp:xml_encode}</title>
          <link>{exp:xml_encode}{path:view_thread}{/exp:xml_encode}</link>
          <guid>{path:view_thread}#When:{gmt_post_date format="%H:%i:%sZ"}</guid>
          <description>{exp:xml_encode}{body}{/exp:xml_encode}</description>
          <dc:date>{gmt_post_date format="%Y-%m-%dT%H:%i:%s%Q"}</dc:date>
        </item>
    {/rows}
        
        </channel>
    </rss>

    Somehow, it doesn’t work and no feed it shown.  Often I read that the weblog is specified in the RSS template (which makes sense). However, I don’t have a weblog for the forums, it just runs from the templates within the forum module. How should I specify that the feed pulls the forum posts in the RSS template?

    Thanks,
    Tammo

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases