Attached is the skeleton of a module to integrate leech with Views. Currently it offers an additional filter and argument that both allow you to display lists of nodes from specific feeds, additionally it provides a few field definitions.

At this point it does what I need it to - so I sure other people would be able to use it as well.

To use it - remove the .txt from the filename, drop it into the leech directory and enable it on the modules page.

CommentFileSizeAuthor
leech_views.module.txt5.61 KBjmiccolis

Comments

michelle’s picture

Sounds like a useful module. Any plans for a 5.x version?

Thanks,

Michelle

geojaz’s picture

This actually seems to work perfectly for 5.0...

All you need to do is:
1. create a folder within the main leech directory called leech_views
2. make a new file: leech_views.info with the following text:

; $Id: leech_views.info,v 1 jmiccolis Exp $
name = Leech_views
description = "Provides views support for Leech"
dependencies = leech
package = leech
version = 5.0

3. Create leech_views.module as in the original instructions.
4. Activate the module... So far, so good... I'll post an update if anything changes!

alex_b’s picture

Status: Active » Closed (fixed)

added to 4.7.x branch.

discursives’s picture

this works for me too for 5-1

alex_b’s picture

Just dropped in without any changes?

patchak’s picture

Dropped in and works perfectly, in 5.1. The only that does not work if taht when I give a NID as argument (feed ID) it does not seem to pass the feed name to the variable in the title.

Instead of showing "the latest nodes by "source name", it displays nothing as the source name, not even the %1 sign.

I added the %1 in the title field of the argument in the view, so I think it's a bug... Anyone care tolook at that?

thanks,
Patchak

patchak’s picture

Status: Closed (fixed) » Active

There is actually this error that pops up in the modules page...

warning: Error parsing sites/all/modules/leech/leech_views/leech_views.info on line 1 in /var/www/html/geekfr/includes/module.inc on line 195.

alex_b’s picture

Version: 4.7.x-1.x-dev » 5.x-1.x-dev

patchak, we are talking 5.x now, right?

patchak’s picture

yeah... I did not notice any other bugs except the error message adn the fact that it does not show the argument title properly...