I am running 4.6.1 and I need the ability to display news feeds on a site, however there are far too many irrelevant stories without the ability to filter based on keywords.

The "news page" module seemed to do what I want but it is no longer available since Drupal 4.6 is not compatible with existing modules.

Does 4.6 have a filtering ability that I haven't found? It would seem that this is a primary function of a news aggregator (otherwise its just a pile of unsorted and unfiltered information).

BTW: Maybe the version numbering of Drupal needs a re-think? On most software, a minor version means pretty much everything will keep working, and a major revision means all bets are off. With Drupal, every minor version means everything gets thrown out and start again from scratch. Even 4.6.0 -> 4.6.1 meant I had to re-install modules (eg. taxonomy_access).

Comments

lekei’s picture

The ability to filter news it critical to my application. Has anyone updated this? Has filtering been added to core?

Is there a (**GAG!**) patch for 5.6?

legacyb4’s picture

Installed news_page 1.9 on Drupal 4.6.3 and got this as an error:

You have an error in your SQL syntax near ') ORDER BY timestamp DESC LIMIT 0, 25' at line 8 query: SELECT i.*, f.link AS flink, f.title AS ftitle FROM aggregator_item i LEFT JOIN aggregator_feed f ON i.fid = f.fid LEFT JOIN aggregator_category_feed c ON c.fid = f.fid WHERE c.cid = '' AND () ORDER BY timestamp DESC LIMIT 0, 25 in /home/httpd/vhosts/DOMAIN.COM/httpdocs/includes/database.mysql.inc on line 66.

as am a bit lost on how to begin troubleshooting this one.

Any help is appreciated.

scriptnews’s picture

Hi, I have not done a deep testing, but a first install of 4.6 with News Page did seem to work. So, why do You say that it is not compatible.

The other point You put in evidence is:

the simple filtering on just some keywords is far not eneough and it would be great to have at least several option to join or exclude keywords, like in search functions : AND, OR, NOT.

And it would be great to "tag" items into a news page from other, more than one categories.

And it would be great to be able to re-feed the output of a news page into a compound or aggregated feed.

I just discovered "reglog", which could provide for some of the needed tools.

Just an idea. Unfortunately, I am not a programmer, so this kind of job goes far beyond my actual possibilities and time frame.

Good luck,

Roland

lekei’s picture

Thanks for the tip, Roland. What is reglog? Is it a module? Some sort of community program by BMW in Germany? A command line program to dump the registration log?

Modules written for 4.5 must be rewritten for 4.6. That's a design "feature" of Drupal and the reason I doubt I will ever contribute any of my modules back to Drupal. It's not that I don't I want to contribute, I am not ready to make a lifetime commitment to it (rewriting for each minor version). I will have to be content providing snippets of help with those struggling with the learning wall.

Are you planning to use the news module? If I rewrite it to do advanced filtering (eg. logical query or a regexp instead of keywords) would you like a copy? (Note: for the reasons stated above, it will not be contributed back as a Drupal module and don't expect it to work with the next version of Drupal).

-Don

scriptnews’s picture

Hi

the script I wanted to point to is a kind of aggregator,
that is based on another called "feeds on feeds" or "refeed" ...

You do not have much choices like categories,
but You can stream a bunch of feeds into one big database,
and then filter by keywords, or just pick one item, edit it and
then "re-feed" or feed it back into Your blog or feeds.

Thats why its called ReBlog ... :-)

Quite cool and something like that would be a cool enhancement
to Drupal Aggregator.

Greetings from Costa Rica

Roland
http://centroamerica.tv/

robert castelo’s picture

I just spent a bit of time trying News Page 4.5 on Drupal 4.6, and it works fine.

All the modules I've updated so far have been pretty quick, and all the changes that were needed were well documented and usually brought new features to the module.

I made a few improvements while I was looking at the code anyway, main one being that news feed items are no longer included in the teaser, and you can set the Body's Input format to whatever you like without affecting the news feed items.

Also News Page pages are now searchable.

You'll be happy to know that no database changes are neccessary, so update will be very easy.

I'll release an update to CVS shortly, and would appreciate any testing and feedback.

If there's no problems I'll create a 4.6 branch next weekend.

Enjoy!

[MegaGrunt]

------------------------------------------
Drupal Specialists: Consulting, Development & Training

Robert Castelo, CTO
Code Positive
London, United Kingdom
----

lekei’s picture

Thanks, Megagrunt.

Let me know when it is ready and I will test it.

I guess I also need to figure out CVS.

Grrrr... I didn't INTEND to become a Drupal Developer. I thought Drupal was "Open Source", didn't realize it was "open-the-source".

Is there anything I need to do with Taxonomy to get it working? It's the only bit I still don't get.

-Don

robert castelo’s picture

Updated module now available:

http://cvs.drupal.org/viewcvs/drupal/contributions/modules/news_page/

Lekel, no need to figure out CVS, just download the updated file through your web browser (Internet Explorer, FireFox,...). Save the file to your desktop and install it in your Drupal installation:

http://cvs.drupal.org/viewcvs/*checkout*/drupal/contributions/modules/ne...

Taxonomy not neccessary for this module.

[MegaGrunt]

------------------------------------------
Drupal Specialists: Consulting, Development & Training

Robert Castelo, CTO
Code Positive
London, United Kingdom
----

lekei’s picture

After creating a news page, the final page is:

» Page Not Found

Page not found

Your news page was created.

And the url has 2 slashes in it.

Is there some place to edit the news page that is created? I don't see it's block on the blocks menu.

Also, It worked fine in the preview but nothing shows up on the front page.

lekei’s picture

The "page not found" message was caused by a leading slash in the alias. Might be an idea to test for that on input.

The news page works fine but does not produce any output on the front page.

You can see it at http://bts.cafezone.ca

-Don

robert castelo’s picture

"The news page works fine but does not produce any output on the front page."

It's a feature not a bug ;-)

No seriously, I really didn't like having news feed items in home page teasers. Notice that the teaser does display Body text, so you can add a suitable description of the page to encourage visitors on to the news page (which I notice you've done).

Nice site by the way, the theme is quite attractive.

[MegaGrunt]

------------------------------------------
Drupal Specialists: Consulting, Development & Training

Robert Castelo, CTO
Code Positive
London, United Kingdom
----