Hello,
I have a following problem and I can't find a solution nor on drupal.org, nor google it. Could someone please help me?

I have several external RSS feeds (created via Aggregator core module). I would need to create a block view that shows only the feed with source name coresponding to the title of the page where the block is shown.

To illustrate it: I have a feed sources: "AAA", "BBB", "CCC". The block view is shown at the "producer" content type node. I need the block on (producer) page titled "AAA" to show only the content of the feed "AAA", the same for producer page "BBB" (show only "BBB" source) and so on...

I suppose it must be in the "contextual filters" option but I can't find it. It's now three days I am blocked by this and I would really appreciate any help.

Thanks a lot in advance,
Martin

PS: I use Autopath module

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

PMZ’s picture

Someone has an idea please?

Thanks!

mxwitkowski’s picture

PMZ - having the same issue. Can't find the Aggregator feed: Title in the list of contextual filters. No sure how to address this, but I am willing to help out with testing if anybody has a solution or patch.

mxwitkowski’s picture

I wrote a patch for version 7.x-3.3 of views that allows the "Aggregator feed: Title" to be added as a contextual filter. Added the following to the aggregator.views.inc file:

'argument' => array(
'handler' => 'views_handler_argument_string',
),

Patch is attached. I have tested on my local system and all works fine.

isholgueras’s picture

In my local works fine too.

I hope that this patch be added to views in the next version

PMZ’s picture

Works fine for me too!

Thanks a lot for your help!

PMZ

dawehner’s picture

Category: support » feature
Status: Active » Fixed

Hey this issue turned into something bigger :)

Committed this patch to both 8.x-3.x and 7.x-3.x

mxwitkowski’s picture

Glad to help. Enjoy!

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.