0

I have 2 content types: Developments and Carousel Images. Carousel Images has an entity reference field to select the Developments page it is linked to.

I simply want to create a view which will display on all Development pages, but only show the images which are linked to it. So the Development page called 'London' will display a view with all Carousel images where 'London' is selected in the entity reference field.

I have tried using contextual filters and relationships but not been able to get this working.

Any ideas?

3
  • This may be helpful: drupal.stackexchange.com/questions/32510/… - in short it's possible, it's just a little complex. Nov 20, 2016 at 13:36
  • Thanks for the reply. I did look at this, but it seems to be more to do with showing content in a view from linked content types. I'll check again in case I missed something but what I want is to dynamically link the content of a view to display in a block in a different content type based on.a link through possibly an entity reference fiield.
    – Mupe Rocks
    Nov 21, 2016 at 17:58
  • OK, finally worked out how to do it. Thanks to this video which explains it all: youtube.com/watch?v=4Pdii7aFIvc&t=392s However, in case anyone else is stuck you need to first create a relationship based on your entity reference field, sthen create a contextual filter using node:id based on url. This is all you need to do.
    – Mupe Rocks
    Nov 25, 2016 at 17:02

1 Answer 1

0

OK, finally worked out how to do it. Thanks to this video which explains it all: https://www.youtube.com/watch?v=4Pdii7aFIvc&t=392s However, in case anyone else is stuck you need to first create a relationship based on your entity reference field, sthen create a contextual filter using node:id based on url. This is all you need to do.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.