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
Comment | File | Size | Author |
---|---|---|---|
#3 | views-contextual-filter-aggregator-feed-title-1661544-3.patch | 417 bytes | mxwitkowski |
Comments
Comment #1
PMZ CreditAttribution: PMZ commentedSomeone has an idea please?
Thanks!
Comment #2
mxwitkowski CreditAttribution: mxwitkowski commentedPMZ - 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.
Comment #3
mxwitkowski CreditAttribution: mxwitkowski commentedI 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.
Comment #4
isholgueras CreditAttribution: isholgueras commentedIn my local works fine too.
I hope that this patch be added to views in the next version
Comment #5
PMZ CreditAttribution: PMZ commentedWorks fine for me too!
Thanks a lot for your help!
PMZ
Comment #6
dawehnerHey this issue turned into something bigger :)
Committed this patch to both 8.x-3.x and 7.x-3.x
Comment #7
mxwitkowski CreditAttribution: mxwitkowski commentedGlad to help. Enjoy!