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 sorting issues ... with Google?

June 08, 2010 3:17pm

Subscribe [3]
  • #1 / Jun 08, 2010 3:17pm

    hotknife

    59 posts

    We have what should be a fairly simple RSS feed: job postings. I want them ordered so that the most recently posted ones show up at the top of the feed. Should be simple, right? Only I can’t get it to work. It keeps showing me entries from November, but not the ones posted this morning. (Worse yet, the November entries have actually been CLOSED, and so when you click the link, you get a blank page.)

    Here’s my code:

    {assign_variable:master_weblog_name="job_bank"}
    {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-%dT%H:%i:%s%Q"}</dc:date>
        <admin:generatorAgent rdf:resource="http://expressionengine.com/" >
        
    {exp:weblog:entries weblog="{master_weblog_name}" }
        <item>
          <title>{exp:xml_encode}{title}{/exp:xml_encode}</title>
          <link>{title_permalink=chifoo/job_bank_detail}</link>
          <guid>{title_permalink=chifoo/job_bank_detail}#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}

    I pretty much just used the template provided with EE. I’ve stripped out all the weblog parameters, because changing them had zero impact on the output of my feed.

    The only special thing: It’s a secure feed (members-only content), and requires a secure feed reader.

    One weird thing: I just tested my feed in Safari, and it DOES work there! But neither Google homepage or reader displays it correctly.

    Any ideas?


    EE 1.6.8

    Caching turned off for the RSS template

    Caches just cleared.

  • #2 / Jun 08, 2010 5:57pm

    Ingmar

    29245 posts

    We have what should be a fairly simple RSS feed: job postings. I want them ordered so that the most recently posted ones show up at the top of the feed. Should be simple, right?

    Let’s concentrate on the weblog:entries tag here for a second since all your entries will be pulled by it. Try putting this in a separate template:

    {exp:weblog:entries weblog="job_bank"}
       {title}
    {/exp:weblog:entries}

    Does it pull the entries you’re expecting it to? If now, why not?

    It’s a secure feed (members-only content), and requires a secure feed reader.

    Does Google Reader support authenticated feeds? I know they haven’t for the longest time.

  • #3 / Jun 08, 2010 6:18pm

    hotknife

    59 posts

    Does Google Reader support authenticated feeds? I know they haven’t for the longest time.

    Gah! I just checked—you’re right! It doesn’t.

    But then, why does it ask me to login and then shows me a few outdated feed items???

  • #4 / Jun 08, 2010 9:46pm

    Brandon Jones

    5500 posts

    Perhaps those are the latest entries from before the feed required authentication? Hard to say but indeed, it’s an issue with Reader, unfortunately.

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

ExpressionEngine News!

#eecms, #events, #releases