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.

All RSS feed items have the same date

January 24, 2012 9:26pm

Subscribe [2]
  • #1 / Jan 24, 2012 9:26pm

    CERF

    3 posts

    My RSS template based the sample RSS template out puts the same date for every item in the feed (even though they were posted on different dates).

    feed://craftemergency.org/site/rss/

    {preload_replace:master_channel_name="news_blog"}
    {exp:rss:feed channel="{master_channel_name}"}
    
    <?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>CERF+ News</title>
        <link>{channel_url}</link>
        <description>{channel_description}</description>
      <image>
        <url>{site_url}images/clogo.png</url>
        <title>CERF+</title>
        <link>{site_url}</link>
      </image>
        <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%Q"}</dc:date>
        <admin:generatorAgent rdf:resource="http://expressionengine.com/" >
        
    {exp:channel:entries channel="{master_channel_name}" limit="10" dynamic_start="on" disable="member_data|pagination" status="Home Page|Open|Current Focus Home"}
        <item>
          <title><![CDATA[{title}]]></title>
          <link>{title_permalink='news/view'}</link>
          <guid>{title_permalink='news/view'}#When:{gmt_entry_date format="%H:%i:%sZ"}</guid>
          <description><![CDATA[{blog_content}]]></description>
          <dc:subject><![CDATA[{categories backspace="1"}{category_name}, {/categories}]]></dc:subject>
          <dc:date>{gmt_entry_date format="%Y-%m-%dT%H:%i%Q"}</dc:date>
        </item>
    {/exp:channel:entries}
        
        </channel>
    </rss>
    
    {/exp:rss:feed}
  • #2 / Jan 26, 2012 2:24pm

    Shane Eckert

    7174 posts

    Hello CERF,

    I checked your RSS feed and it looks like you solved the issue. Is this correct?

    Would you minds sharing your solution with the community?

    Thank you,

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

ExpressionEngine News!

#eecms, #events, #releases