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

vitozzo - July 8, 2008 - 12:40

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

momper - June 10, 2009 - 12:19

@vitozzo

i'm trying this for 6 - it's still working for you?

thanks momper

#3

momper - June 11, 2009 - 11:42

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

momper - June 11, 2009 - 19:35

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

AttachmentSize
tag_filter.zip 3.14 KB

#5

darksatanic - October 15, 2009 - 14:21

Here's a complete submodule for doing the same tag-based filtering.

AttachmentSize
category-filter.patch 14.13 KB

#6

momper - October 16, 2009 - 21:42

excellent - thanks ...

 
 

Drupal is a registered trademark of Dries Buytaert.