RSS Import in revers order

Author Message

Daniel Guerrier

Friday 04 March 2005 7:48:11 am

Most RSS imports that are provided are given in a current to latter date sort order. The ez RSS imports takes these and enters them in a First seen First stored basis and that reverses the order of items imported from latter to current. How do I setup the import to keep the most current items at the top of the list?

Gabriel Ambuehl

Friday 04 March 2005 7:58:11 am

You could try sorting the folder where the RSS entries are stored in a different way?

Visit http://triligon.org

Daniel Guerrier

Friday 04 March 2005 8:13:28 am

That will only work for the first batch.
When I get a new set on the next iteration it will be out of order

ex:
54321 is entered as 12345 which I sort to 54321

no 9876 is entered as 6789 which makes 678912345 that will be sorted desecending as 543219876

it should be 987654321

I hope that makes sense.

Daniel Guerrier

Saturday 12 March 2005 5:26:59 pm

Does anyone have any other suggestions?
Is there a way to add more fields that are stored by the RSS feeds.
If so I can sort it on retrieval by the publish date given by the source of the article.

Thanks

Daniel Guerrier

Monday 14 March 2005 8:29:55 am

I guess I can assume that this will be ignored until I give up hope of a reply.

Daniel Guerrier

Monday 14 March 2005 2:04:35 pm

Is there any reason why everyone is ignoring this.
If you are getting info from a news source this would be a big issue.

Ɓukasz Serwatka

Monday 14 March 2005 10:04:08 pm

Hi Daniel,

Do you use $node.sort_array for object sorting? Have you tryed with sort_by, array( 'published', false() ) ?

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

Daniel Guerrier

Tuesday 15 March 2005 7:18:34 am

Sorting on my part is not the issue.
The problem is the RSS feed is given in descending order, from most recent to earliest, but ezpublish inserts it on a first receieved first inserted basis which essential makes it from earlist to most recent and sets the publish date to the time it was inserted. This causes the latest item to become the earliest item. I can can sort the array of item in any which way, but that will not take care of the date problem, especially as items or inserted over time.

Ideally, the solution would be to give me the option of a date field that can map to the RSS publish date or import the RSS and maintain the original order.

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.