Filter on tags?
vitozzo - June 3, 2008 - 11:25
| Project: | FeedAPI Item Filter |
| Version: | 5.x-1.x-dev |
| Component: | Miscellaneous |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Description
Hi,
I'm using your module, but I would like to modify it: I need to filter feed's items based on tags, not on the content of the post.
I've seen that basically this module search for the "filter words" in the $item->description field.
I tried to modify that to $item->options->tags, to search inside tags, but it doesn't seems to work. (I never get any post filtered even if there are posts with the searched tags).
Anyone has some idea of what I'm doing wrong? Is $item->options->tags cointaining the list of tags or not?
Vito

#1
I solved the problem: just changing the feed parser from "Common syndication parser" to "SimplePie parser" provided by FeedAPI.
The problem was due to the fact that the tags weren't imported correctly with "Common syndication parser".
#2
@vitozzo
i'm trying this for 6 - it's still working for you?
thanks momper
#3
o.k. we will only make the small modifications to use it with tags and upload this ...
@milosh: i would be glad, if you put it into your package :)
i don't know anything about packating - so only a zip ...
#4
we modified the behavior a little bit:
- no positive keyword: all items are included
- positive keywords: only tags marked as positive are included
- negative keywords are overstriking everything
it made most sense to us ...
greetings momper
#5
Here's a complete submodule for doing the same tag-based filtering.
#6
excellent - thanks ...