Steve
Steve

Reputation: 2586

Accepting External parameter for a view in Drupal 7

I have a view which shows title and an image to the article where an image is uploaded within any post. This is shown through a block in a region.

It looks something like this:-

enter image description here

I show it on top of a landing page of a taxonomy; the landing page of the taxonomy page has all the articles which come under the respective taxonomy. Here lies the problem.

I want the article which is returned by the view to be from the taxonomy which shows it. Right now, an article is returned whichever has an uploaded Featured Image; what I Want is that the view returns an article which has an uploaded image and it belongs to the same category (taxonomy) of which landing page I am opening.

Thanks.

Upvotes: 0

Views: 164

Answers (1)

chronnus
chronnus

Reputation: 91

Add a Taxonomy Term ID contextual filter to the view. Then choose to provide a default argument, and under type choose Taxonomy Term ID from URL.

Upvotes: 1

Related Questions