Can I make aggregator show today only?

bryan kennedy - January 7, 2005 - 17:07

Does anyone know if there is a simple way to make the aggregator module show post for only today?

So when I go to http://mydrupalsite.com/aggregator, I only get news feeds from today.

If there is not a simple way, does anyone know if there is a complex way (php programing)?

I was also curious if you could make the aggregato display AM PM time not 24-hour time.

Info on aggregator module

bryan kennedy - January 9, 2005 - 19:53

Okay, how about even a some documentation about the aggregator module. Does anyone know why the aggregator module does not seem to be listed on the modules page? I would like to submit a feature request or get some module specific support but can find no page even mentioning who wrote the module or not. Is this because it is part of the default drupal install?

The aggregator module is

Steve Dondley - January 9, 2005 - 20:20

The aggregator module is part of the Drupal core so you will not find it on that page. All documentation for core module can be found at http://drupaldocs.org/.

You will need to hack the module to get the functionality you are looking for.

Hack the aggergator.module file?

bryan kennedy - January 9, 2005 - 21:37

Just so I focus my efforts in the right place, I want to look at the aggregator.module file in the modules directory? Is that drupaldocs website kept current and up to date? I hadn't seen much reference to it elsewhere and just want to make sure that this is the deffinitive source for that info.

Out of curriosity, why is the aggregator module part of the core? Is it because of it's functionality or is it because it has been around for a long time?

Modules get into the core

Steve Dondley - January 9, 2005 - 21:47

Modules get into the core when the are considered to be of sufficient quality and usefulness by Dries.

Drupal docs is fully up to date. I could be wrong, but I believe the drupaldocs web site parses live copies of the Drupal code. So when the code gets updated, so doesn't the web site.

Yes, you will want to hack the aggregator.module file. You'll want to place some additional logic in the code that filters out any feeds older than a day.

First attempt at hacking module

bryan kennedy - January 9, 2005 - 22:07

Great, Thanks for the help nysus. This is my first try at working with any of the modules so I might move slow. However, if I get this working and can make is good enough for submission I will post it for possible inclussion in the official module, if anyone else finds it a useful feature.

Thanks again for your super quick replies.

No problem

Steve Dondley - January 9, 2005 - 22:14

Don't worry about it taking a long time because it will. That's how we all got started (well at least those of us who didn't actually build Drupal from the ground up). It's a long, slow path but often a very rewarding one.

no more Drupaldocs.org

BenStallings - July 21, 2008 - 16:26

Drupaldocs.org appears to have expired. Where can we look for core documentation now?

Any word?

parakeet - April 24, 2005 - 00:22

Would be interested to know if you got anything working...

Thanks.

yes i did, but...

bryan kennedy - April 24, 2005 - 14:18

yeah, i got this to work, sorta. here you can see my site:
Daily Science News

But it was a serious hack job. Not fit for sharing. Umm...I am working on getting a new version of this hack ready for 4.6 in the next couple of weeks. If I do maybe I will try to build it into the module for real. I will post back here if I get any progress.



bryan kennnedy
Help us to improve Drupal's documentation. Join the Dupal Documentation Mailing List

 
 

Drupal is a registered trademark of Dries Buytaert.