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.

Urgent help with RSS Feed

September 23, 2010 11:28pm

Subscribe [3]
  • #1 / Sep 23, 2010 11:28pm

    jeremygrandstaff

    15 posts

    I am trying to fix our rss feed XML template
    http://www.peoplepoweredmovement.org/site/index.php/site/rss_2.0/
    so that it reads correctly with rss readers like google reader.


    I findly got it to show our content correctly, but now it is displaying every date as though it has just been updated, which is also making things come out of order and act funky.

    The code is below, can someone please direct me and how to fix. We are upgrade to 2.0 within the next three months, but my boss wants this fixed now.:

    {assign_variable:master_weblog_name="default_site"}
    {exp:rss:feed weblog="default_site|jobs|blog"}
    
    <?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}Alliance for Biking & Walking{/exp:xml_encode}</title>
        <link>http://PeoplePoweredMovement.org</link>
        <description>: Items from the Main page, blog, & Job Announcements</description>
        <dc:language>{weblog_language}</dc:language>
        <dc:creator>{email}</dc:creator>
        <dc:rights>Copyright {gmt_date format="%Y"}</dc:rights>
        <dc:date>{entry_date format="%Y-%m-%dT%H:%i:%s%Q"}</dc:date>
        <admin:generatorAgent rdf:resource="http://www.pmachine.com/" >
        
    {exp:weblog:entries weblog="default_site|blog|jobs" limit="100" dynamic_start="on" disable="member_data|trackbacks"}
    
        <item>
          <title><![CDATA[{title}]]></title>
          <link>{title_permalink=site/{if weblog=blog}blog{if:else}memberservices{/if}/}</link>
          <description><![CDATA[{summary}{body}]]></description>
          <dc:subject><![CDATA[{categories backspace="1"}{category_name}, {/categories}]]></dc:subject>
          <dc:date>{entry_date format="%Y-%m-%dT%H:%i:%s%Q"}</dc:date>
        </item>
    
    {/exp:weblog:entries}
        
        </channel>
    </rss>
    
    {/exp:rss:feed}
  • #2 / Sep 24, 2010 1:33pm

    Sue Crocker

    26054 posts

    jeremeygrandstaff - I’m not seeing a valid RSS feed at that address. Did you mean to use a different link?

  • #3 / Oct 02, 2010 10:29pm

    jeremygrandstaff

    15 posts

    It was the correct link to the feed. But, I have abandoned that strategy and am trying a new approach; however, I’m still having problems. Please read below and help:

    The feed url is http://www.peoplepoweredmovement.org/site/index.php/site/rssblog
    If you open it in google reader directly, it does show the feed, but it is showing the times/dates of the posted items incorrectly, I.E., they were not all posted on 10/2/10.

    Code is below, please assist me.

    {assign_variable:master_weblog_name="default_site"}
    {exp:rss:feed weblog="news"}
    
    <?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}Alliance for Biking & Walking: People Powered Blog{/exp:xml_encode}</title>
        <link>http://peoplepoweredmovement.org/blog</link>
        <description>The Alliance for Biking & Walking, formerly known as Thunderhead Alliance, is the North American coalition of grassroots bicycle and
    pedestrian advocacy organizations. We unite advocacy leaders to help them become more effective by sharing best practices and innovations. We strengthen
    organizations through resource sharing and training opportunities. We help advocates create organizations in underserved communities. Alliance organizations
    are working together to transform communities into great places to bike and walk.</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://www.pmachine.com/" >
        
    {exp:weblog:entries weblog="news" limit="200" rdf="off" dynamic_start="on" disable="member_data|trackbacks"}
        <item>
          <title>{exp:xml_encode}{title}{/exp:xml_encode}</title>
          <link>{title_permalink=site/blog/}</link>
          <guid>{title_permalink=site/blog}#When:{gmt_entry_date format="%H:%i:%sZ"}</guid>
          <description>{exp:xml_encode}{summary}{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}
  • #4 / Oct 04, 2010 3:18am

    John Henry Donovan

    12339 posts

    jeremygrandstaff,

    That feed is blank for me at the moment. Have you turned it off temporarily?

    A good test here is to create a new blank template and only add the following. Do your dates look correct now?

    {exp:weblog:entries weblog="news" limit="20" dynamic="no"}
        <item>
          <title>{exp:xml_encode}{title}{/exp:xml_encode}</title>
          <link>{title_permalink=site/blog/}</link>
          <guid>{title_permalink=site/blog}#When:{gmt_entry_date format="%H:%i:%sZ"}</guid>
          <description>{exp:xml_encode}{summary}{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}
.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases