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.
| Attachment | Size |
|---|---|
| parent_title_filter.patch | 1.74 KB |

#1
This is working here:
http://zivtech.com/videos/wall-o-feeds
#2
I rerolled this patch against the latest dev version of FeedAPI's feedapi_node_views.module . I'm surprised nobody else has needed this...
#3
Useful! Thanks. Committed.
#4
subscribing to D6 port.
#5
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
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
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.
#8
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
#9
Patch in #8 looks good and is working for us.
#10
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
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.
#12
why can't you do that by adding a relationship, then filtering on node.title on the parent relationship?
#13
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
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
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
+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
The multi select exposed filter would be a nice addition.