Hi,

I'm sort of new at this and I'm wondering if I'm just missing something simple here:

-I've created a feed and gotten items into it
-I've created a category and categorized several of these items. i can see the categorized pages without any problem and all the selected content is there

I am trying to create a view to display one of these categories. I've created an Aggregator view, added fields, and my feed items show up in the preview. However, I only want to display a single category's items, and here's where the problem arises.

I try to create an "Aggregator category: Category ID" filter. The category I created is listed there as an option and I check that option. However, now none of my items show up in the preview (or the URL)

I simply want to display only the feed items in a specific category. How do I do that?

Thanks,
DC

Comments

dietcheese’s picture

When I add the category ID and Category Name as fields on my view, each item in the preview says:

Category:
Category ID: 0

Even the ones that I have applied to category 1 and are clearly listed here:

aggregator/categories/1

?

Thanks,
DC

dietcheese’s picture

Anyone wanna give me some direction on this? I'm stuck.

Thanks!
DC

JuneB’s picture

I am having the same problem as identified above.
[Drupal 6 with aggregator & views modules running in Marinelli theme.]

In Aggregator module, categories were assigned to a bunch of the feed items, and saved.
But within the Views module, data for the "Aggregator Category" is always blank, "Aggregator Category ID" is always 0. So building a filter in Views based on either "Aggregator category" or "Aggregator Category ID" filters out ALL content. Both filters are shown in the query below:

SELECT aggregator_item.iid AS iid,
aggregator_item.title AS aggregator_item_title,
aggregator_item.link AS aggregator_item_link,
aggregator_category.cid AS aggregator_category_cid,
aggregator_category.title AS aggregator_category_title
FROM drup_aggregator_item aggregator_item
LEFT JOIN drup_aggregator_category_feed aggregator_category_feed ON aggregator_item.fid = aggregator_category_feed.fid
LEFT JOIN drup_aggregator_category aggregator_category ON aggregator_category_feed.cid = aggregator_category.cid
WHERE ((aggregator_category.title) = ('8')) AND (aggregator_category.cid in ('8'))

How can we tell if the Views module is getting the right categories data?
Also, might the query built in Views have switched the fields between the "category title" -and- the "category identifier"?

Any help is greatly appreciated.
JuneB

dietcheese’s picture

I still haven't found a solution to this. My view seems to refuse to recognize the categories of my aggregator.

pjmcghee’s picture

did anyone ever find out an answer to this? i have run into the same thing and it is just bizarre that this would work this way by design.

ti_chandan’s picture

Edit your view.
Add filter criterion: Aggregator category: Category ID

And in the popup, Select

operator: Is one of
Options: [whatever category you defined]

Louis Horn’s picture

There seems to be an issue with the views module. When showing aggregator items, and including category, it only shows the default configured categories, and not the categories that were selected. Easiest way to test this, is to have no default category, then categorize on a feed and save, then check the view. The selected categories will not show, even with clearing caches and all the usual display refreshing solutions. It's a bug.