I love to use the aggregator module. I understand that the display order of these rss feeds always puts the most recent item first.

I am using Drupal for our Community Access TV website. I am using the aggregator to grab our program schedule from our scheduling program. Aggregating the information is not the problem. Displaying the order of our program schedule is. When I view the display from the feed, today's schedule is last when it should be first. The order within the days is also reveresed. The last program for the day is listed first while the first proram is last.

Is there a way to configure a feed to change the order of the display? I am a Drupal newbie and I am not that proficient in programming language...although I can follow detailed directions. Thanks in advance!

Comments

Millman’s picture

I'm also having a similar problem, any help on this issue would be welcome.

danzsmith’s picture

I am also having this issue - can anyone help?

geekarena’s picture

I'm doing calendar feeds and the default order is not gonna work. I'm willing to hack a core file, just need to know what.

zeno129’s picture

I found a way to change the order of the feed items from reverse chronological order to chronological order...
It was really an easy task...the hard part was finding the piece of code I was looking for.

(BTW...I did this for D6.x)

To modify the feed: you need to modify the aggregator.pages.inc file
do a CTRL + F for DESC ...this will point you to the sql queries you need to change.
replace all the DESC for ASC

To modify the display in a block (left, right or center nav.): you need to modify the aggregator.module
do the same as described above

It's a fairly easy hack to do... :)

I am thinking about writing an extra function so that I don't show whatever events have already passed this week...
If anyone is interested, let me know.

ntripcevich’s picture

Thanks for these directions. Too bad it's a hack to core -- I'm having to repeat this with every update to Drupal 6.x. Ideally it would be an option in Feed Aggregator settings.

In addition to doing this hack I have to periodically "Remove Items" from each feed in
/content/aggregator/list
because they're cached out of order.

---
Nico Tripcevich
UC Berkeley