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.

RSS Feed Empty

June 14, 2011 12:50pm

Subscribe [3]
  • #1 / Jun 14, 2011 12:50pm

    akukral

    24 posts

    I have nearly started to pull out my hair and would greatly appreciate some help with this issue. I have created a rss typed template in the template group feed/news. I am running EE 2.1.3 with the RSS module installed and running properly.

    The channel that I am pulling is news-events, the status is Published and Published Home, the content that I would prefer to display is news_excerpt. In readers that this code does not throw an error it returns empty feed.

    If I pull out channel entries portion and stick it in a web page it will work fine pulling the data.

    The code that I am using to generate my RSS feed is:

    {exp:rss:feed channel="news-events"}
    
    <?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}{channel_name}{/exp:xml_encode}</title>
        <link>{channel_url}</link>
        <description>{channel_description}</description>
        <dc:language>{channel_language}</dc:language>
        <dc:creator>{email}</dc:creator>
        <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/" >
        
    {exp:channel:entries channel="news-events" limit="10" dynamic_start="on" disable="member_data" status="Published|Published Home"}
        <item>
          <title>{exp:xml_encode}{title}{/exp:xml_encode}</title>
          <link>{title_permalink="news-events/view"}</link>
          <guid>{title_permalink="news-events/view"}#When:{gmt_entry_date format="%H:%i:%sZ"}</guid>
          <description><![CDATA[{news_excerpt}]]></description> 
          <dc:subject>{exp:xml_encode}{categories backspace="1"}{category_name}, {/categories}{/exp:xml_encode}</dc:subject>
          <dc:date>{gmt_entry_date format="%Y-%m-%dT%H:%i:%s%Q"}</dc:date>
        </item>
    {/exp:channel:entries}
        
        </channel>
    </rss>
    
    {/exp:rss:feed}

    ADDED: Also here is a link to the feed. http://tre-stage.wdogsystems.com:8000/feed/news

  • #2 / Jun 14, 2011 12:58pm

    I believe the parameters in both the {exp:rss:feed} and {exp:channel:entries} tags have to match.  In this instance you’re not seeing anything because {exp:rss:feed} is looking for entries with the default “open” status, and {exp:channel:entries} is looking for entries with status=“Published|Published Home”}.

    In short, I believe you need this, or something very much like it:

    {exp:rss:feed channel="news-events" limit="10" dynamic_start="on" disable="member_data" status="Published|Published Home"}
  • #3 / Jun 14, 2011 1:06pm

    akukral

    24 posts

    You sir are a gentleman and a scholar. That simple change seems to have fixed all of my issues. The fact that the tags have to match was over looked AND/OR lost on me. Many thanks!!

  • #4 / Jun 15, 2011 6:52am

    John Henry Donovan

    12339 posts

    Thanks Nick. Feel free akukral, to start a new thread if you have any more questions

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

ExpressionEngine News!

#eecms, #events, #releases