Filter by Parent Feed Title

Jody Lynn - April 27, 2008 - 22:05
Project:FeedAPI
Version:6.x-1.x-dev
Component:Code views integration
Category:feature request
Priority:normal
Assigned:Unassigned
Status:needs review
Description

I added a filter for the parent feed's title. I like this better than filtering by parent feed's nid as was already supplied. Patch is working for me.

AttachmentSize
parent_title_filter.patch1.74 KB

#1

Alex UA - April 29, 2008 - 15:57

#2

Alex UA - September 20, 2008 - 15:25
Version:5.x-1.2» 5.x-1.x-dev

I rerolled this patch against the latest dev version of FeedAPI's feedapi_node_views.module . I'm surprised nobody else has needed this...

AttachmentSize
feedapi_parent_name_filter.patch 1.95 KB

#3

Aron Novak - November 10, 2008 - 10:52
Status:needs review» fixed

Useful! Thanks. Committed.

#4

siddhen - November 21, 2008 - 08:56
Version:5.x-1.x-dev» 6.x-1.x-dev
Status:fixed» patch (to be ported)

subscribing to D6 port.

#5

drewish - December 16, 2008 - 02:19
Component:Code» Code views integration
Status:patch (to be ported)» fixed

The patch on #347526: Full views support, admin/content/feed powered by views would allow you to do this in the D6 version. You'd add a relationship to the parent feed and then add a filter or argument for the Node title but specify that you'd like to use the Parent feed relationship that you just added.

#6

Jody Lynn - December 16, 2008 - 17:52
Status:fixed» patch (to be ported)

It looks like whether or not you use the relationship as you describe or just use an exposed filter for FeedAPI Item: Parent feed, you end up with an exposed filter that's a search bar instead of a dropdown selector, which would be more appropriate.

#7

jtsnow - December 29, 2008 - 23:19
Status:patch (to be ported)» needs review

Here is a patch that combines the patch from #347526: Full views support, admin/content/feed powered by views and adds a filter for parent feed title via a dropdown select box. Note that this filter requires use of the 'Parent feed' relationship.

AttachmentSize
feedapi_views_parent_feed_title.patch 41.92 KB

#8

jtsnow - December 31, 2008 - 18:48

Here is an updated patch against the latest dev version. Also fixed a bug in which 'All' could not be selected by default. This is being used at http://zivtech.com/videos/drupal-video-planet

AttachmentSize
feedapi_views_parent_feed_title.patch 5.79 KB

#9

Jody Lynn - January 5, 2009 - 18:13
Status:needs review» reviewed & tested by the community

Patch in #8 looks good and is working for us.

#10

drewish - January 7, 2009 - 20:06
Status:reviewed & tested by the community» duplicate

jtsnow, why did you merge the code in? it would have been better to keep the issue over on #347526: Full views support, admin/content/feed powered by views where it started. now there's duplicate code spread between two issues. please merge your changes into that issue.

#11

jtsnow - January 29, 2009 - 18:22
Status:duplicate» needs review

My apologies, drewish. Anyway, now that #347526: Full views support, admin/content/feed powered by views has been committed, I've re-rolled the patch to add this filter.

AttachmentSize
feedapi_views_parent_feed_title_251957_11.patch 5.32 KB

#12

drewish - January 30, 2009 - 00:25

why can't you do that by adding a relationship, then filtering on node.title on the parent relationship?

#13

jtsnow - January 30, 2009 - 08:43

You can, but that method only provides a text box to enter the feed title. This patch provides a select box that lists all feed titles. A live example is at http://zivtech.com/videos/drupal-video-planet

#14

bcobin - January 31, 2009 - 21:19

I am completely, totally, utterly confused - the parent feed dropdown would be an enormous help, but I don't know which patch(es) to apply and to which version(s)!

I see the patch was for the "latest dev version" as of December 31, but that version seems not to be available.

I think I've tried every combo, including the thread in #11; the closest I've come was being able to select Feed Title as an option at one point, but I got the error message the field_not_defined, or something like that.

Any help here would be greatly appreciated - filtering by the Parent Feed title is intuitive and obvious as opposed to the current interface. Thanks for coming up with the code and, hopefully, for some guidance as to using it!

#15

drewish - February 12, 2009 - 18:09

okay, i agree that this is a worthwile feature, but the implementation feels wrong to me. i going to need this for a site of mine so i'll take a swing at it.

#16

Steve Dondley - April 28, 2009 - 02:53

+1 Works as advertised.

-1 It would be better to allow the option to selection of more than one feed with a multi-select menu.

#17

Webster619 - June 18, 2009 - 16:23

The multi select exposed filter would be a nice addition.

 
 

Drupal is a registered trademark of Dries Buytaert.