Download & Extend

Filter by Parent Feed Title

Project:FeedAPI
Version:6.x-1.x-dev
Component:Code views integration
Category:feature request
Priority:normal
Assigned:Unassigned
Status:needs review

Issue Summary

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

Comments

#1

#2

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

Status:needs review» fixed

Useful! Thanks. Committed.

#4

Version:5.x-1.x-dev» 6.x-1.x-dev
Status:fixed» patch (to be ported)

subscribing to D6 port.

#5

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

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

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

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

Status:needs review» reviewed & tested by the community

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

#10

Status:reviewed & tested by the community» closed (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

Status:closed (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

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.

#18

Missing handler error after applying #11 patch

1) I applied the patch from #11
2) I already have the "FeedAPI Item: Parent feed" relationship set up in my view
3) Added a new filter: FeedAPI Item > FeedAPI Item: Parent Feed Title
4) The following error appears instead of the filter settings: handler for node > feed_title doesn't exist! (see screenshot)

#19

so
How Filter by Parent Feed Title?

nobody click here