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.

eZ debug

Timing: Jan 20 2025 17:31:04
Script start
Timing: Jan 20 2025 17:31:04
Module start 'layout'
Timing: Jan 20 2025 17:31:04
Module start 'content'
Timing: Jan 20 2025 17:31:05
Module end 'content'
Timing: Jan 20 2025 17:31:05
Script end

Main resources:

Total runtime1.1055 sec
Peak memory usage4,096.0000 KB
Database Queries74

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0042 589.0313151.2109
Module start 'layout' 0.00420.0022 740.242236.6484
Module start 'content' 0.00641.0982 776.8906644.2969
Module end 'content' 1.10460.0008 1,421.187515.8516
Script end 1.1055  1,437.0391 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00280.2491160.0002
Check MTime0.00120.1063160.0001
Mysql Total
Database connection0.00040.037210.0004
Mysqli_queries1.059695.8517740.0143
Looping result0.00060.0578720.0000
Template Total1.079797.720.5399
Template load0.00180.166120.0009
Template processing1.077997.502120.5389
Template load and register function0.00020.017510.0002
states
state_id_array0.00080.076310.0008
state_identifier_array0.00080.069720.0004
Override
Cache load0.00160.1424320.0000
Sytem overhead
Fetch class attribute can translate value0.00060.058130.0002
Fetch class attribute name0.00130.115390.0001
XML
Image XML parsing0.00070.060930.0002
class_abstraction
Instantiating content class attribute0.00000.001190.0000
General
dbfile0.00070.0665180.0000
String conversion0.00000.000540.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
8content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
9content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
5content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 25
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs