Jump to:

17452 Posts in 4473 Topics by 1971 members

Archive

SilverStripe Forums » Archive » External Feedreaders having trouble with Silverstripe RSS

Our old forums are still available as a read-only archive.

Moderators: martimiz, Sean, biapar, Willr, Ingo, simon_w

Page: 1
Go to End
Author Topic: 1840 Views
  • Garrett
    Avatar
    Community Member
    245 Posts

    External Feedreaders having trouble with Silverstripe RSS Link to this post

    Hi,

    Is anyone on the core development team aware that EVERY blog you create in Silverstripe has an RSS problem whereby external feedreaders (My Yahoo, iGoogle, etc.) are not getting the latest posts? This is because these, and many other readers, read the XML *linearly*, instead of sorting the nodes by date, and since the Silverstripe Blog module always puts a new Blog Entry at the BOTTOM, instead of the TOP, this is a huge problem.

    Can someone, ANYONE, please make it so that a NEW Blog Entry gets created at the TOP of the list, as it should be? Can I change the code somewhere to make this happen?!

    Thanks,
    Garrett

  • Anatol
    Avatar
    126 Posts

    Re: External Feedreaders having trouble with Silverstripe RSS Link to this post

    Hi,

    I am not sure what version of the blog module you are using and if this is included in the version you can download through the Silverstripe module download page. I just checked a recent daily build and in the file /blog/code/BlogHolder.php is a function rss() which contains this line:

    $children->sort('Date', 'DESC');

    You could change this to either

    $children->sort('Date', 'ASC');


    or

    $children->sort('ID', 'DESC');

    Cheers!
    Anatol

  • Garrett
    Avatar
    Community Member
    245 Posts

    Re: External Feedreaders having trouble with Silverstripe RSS Link to this post

    You. Are. The. KING. Thank you! Still, though, don't you think a new Blog Entry should be created at the top??

    //Garrett

  • Ingo
    Avatar
    Forum Moderator
    801 Posts

    Re: External Feedreaders having trouble with Silverstripe RSS Link to this post

    > This is because these, and many other readers, read the XML *linearly*, instead of sorting the nodes by date,
    Where do you get this information from? I don't think theres a "wrong way" of sorting feeds as far as feed readers are concerned. Even if they read linearly, they should get all items and compare with their internal caches.

    Google Reader Technical Publishers FAQ doesn't mention anything about sort order:
    http://www.google.com/support/reader/bin/topic.py?topic=12019

    I agree that it should be easier to change the sort order if you feel so inclined.

    1840 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.