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.

duplicate RSS entries

August 16, 2007 1:47pm

Subscribe [1]
  • #1 / Aug 16, 2007 1:47pm

    pirco

    218 posts

    I’ve been getting reports that Google Reader displays duplicates and sometimes triplets of my entries:

    feed://www.myfirstmac.com/index.php/mac/rss_2.0/

    I heard that it might have to do with the GUID tag and the fact that we are sometimes changing the date for an entry.

    but can duplicate entries in RSS feeds be prevented? here’s the code:

    {assign_variable:master_weblog_name="default_site"}
    {exp:rss:feed weblog="{master_weblog_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>{exp:xml_encode}{weblog_name}{/exp:xml_encode}</title>
        <link>{weblog_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-
T;%H:%i:%s%Q"}</dc:date>
        <admin:generatorAgent rdf:resource="http://www.pmachine.com/" >
        
    {exp:weblog:entries weblog="{master_weblog_name}" limit="30" rdf="off" dynamic_start="off" disable="member_data|trackbacks" status="not Closed"}
        <item>
          <title>{exp:xml_encode}{title}{/exp:xml_encode}</title>
          <link>{title_permalink=mac/articles/}</link>
          <guid>{title_permalink=mac/articles/}#When:{gmt_entry_date format="%H:%i:&#xsZ;"}</guid>
          <description><![CDATA[{small-image} ]]>{exp:xml_encode}{summary}{/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-
T;%H:%i:%s%Q"}</dc:date>
        </item>
    {/exp:weblog:entries}
        
        </channel>
    </rss>
    
    {/exp:rss:feed}

    thanks!

  • #2 / Aug 16, 2007 3:03pm

    Lisa Wess

    20502 posts

    First, why do you have dynamic_start off?  Also, is this happening in other readers? Many readers will show edits as new, I don’t use Google Reader so I don’t know if it undertakes such shenanigans. =) But is this happening on all posts, or just ones you have edited? If the latter, then it’s probably Google Reader just showing the edits in some form.

  • #3 / Aug 16, 2007 3:07pm

    pirco

    218 posts

    AFAIK,  dynamic_start=“off” was there by default.

    it seems to happen in google reader only, even with dynamic_start=“off” taken out (=“off”).

    hmmm.

  • #4 / Aug 16, 2007 3:09pm

    Lisa Wess

    20502 posts

    The default templates have dynamic_start=“on” - you might try enabling that, as it might help with the duplicates =)

  • #5 / Aug 16, 2007 3:23pm

    pirco

    218 posts

    oops. ok. will try. thanks!

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

ExpressionEngine News!

#eecms, #events, #releases