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 Working But Empty

May 01, 2009 11:20am

Subscribe [2]
  • #1 / May 01, 2009 11:20am

    Ira Siegel

    13 posts

    My RSS feed is not working for http://www.remax-insight.com. Everything looks solid, but is just empty when I subscribe. Code is below:

    {assign_variable:master_weblog_name="blog"}
    {exp:rss:feed weblog="{master_weblog_name}” show_future_entries=“yes”}

    <?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}{site_name}{/exp:xml_encode}</title>
      <link>{site_url}</link>
      <description>{weblog_description}</description>
      <dc:language>{weblog_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:weblog:entries weblog="{master_weblog_name}” limit=“10” rdf=“off” dynamic_start=“on” disable=“member_data|trackbacks” show_future_entries=“yes” status=“open|landing”}
      <item>
        <title>{exp:xml_encode}{title}{/exp:xml_encode}</title>
        <link>{title_permalink="blog/article"}</link>
        <guid>{title_permalink="blog/article"}#When:{gmt_entry_date format="%H:%i:%sZ"}</guid>
        <description>{exp:xml_encode}{news-body}{/exp:xml_encode}</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:weblog:entries}
     
      </channel>
    </rss>

    {/exp:rss:feed}

  • #2 / May 01, 2009 11:24am

    Sue Crocker

    26054 posts

    Ira, do you have a field called news-body that goes with whatever you have {master_weblog_name} set to?

  • #3 / May 01, 2009 11:49am

    Ira Siegel

    13 posts

    Hi Sue,

    Yes, there is a corresponding field called news-body. I actually just got it working minutes ago, but it raises another question. I have the status in the RSS weblog set to status=“open|landing”, which is fine, but all of my entries were set to “Landing”. When I set two back to just plain “Open”, the feed got populated. But, it would seem that it still should have populated, because I had all of my entries set to something (“Landing”).

    Thanks,
    Ira

  • #4 / May 01, 2009 11:55am

    Sue Crocker

    26054 posts

    landing versus Landing… what happens if you set status to “open|Landing” ?

  • #5 / May 01, 2009 12:18pm

    Ira Siegel

    13 posts

    I think I tried the casing change earlier; not sure it’s related. Probably a good idea to keep everything in sync though, thanks. My prev_entry/next_entry isn’t displaying that one Landing status entry either. Everything in that template (blog/article) was changed to the status=“Open|Landing” too though.

  • #6 / May 01, 2009 1:06pm

    Sue Crocker

    26054 posts

    What about future entries?

  • #7 / May 01, 2009 2:41pm

    Ira Siegel

    13 posts

    Yup, that’s it Sue…thank you for your help!

    -Ira

  • #8 / May 01, 2009 4:03pm

    Sue Crocker

    26054 posts

    Yay! Glad you were able to figure out what the problem was. Don’t hesitate to post again as needed.

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

ExpressionEngine News!

#eecms, #events, #releases