Forums / Setup & design / RSS Import in revers order

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.

eZ debug

Timing: Jan 20 2025 16:57:33
Script start
Timing: Jan 20 2025 16:57:33
Module start 'content'
Timing: Jan 20 2025 16:57:33
Module end 'content'
Timing: Jan 20 2025 16:57:33
Script end

Main resources:

Total runtime0.1771 sec
Peak memory usage2,048.0000 KB
Database Queries141

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0047 589.0156180.8359
Module start 'content' 0.00470.0042 769.851697.8672
Module end 'content' 0.00890.1681 867.7188525.8984
Script end 0.1770  1,393.6172 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00291.6148200.0001
Check MTime0.00110.6481200.0001
Mysql Total
Database connection0.00070.378410.0007
Mysqli_queries0.101357.20221410.0007
Looping result0.00150.85831390.0000
Template Total0.167994.810.1679
Template load0.00070.391410.0007
Template processing0.167294.418210.1672
Override
Cache load0.00050.280110.0005
Sytem overhead
Fetch class attribute can translate value0.00090.514510.0009
XML
Image XML parsing0.00020.106110.0002
General
dbfile0.036120.4037200.0018
String conversion0.00000.002830.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0002 secs