In my project having two type of Content Type 1) Artist and 2) Work

I have added the content for the Artist and now also i have added the content for the Work according to Artist Name having field name (Artist field_artist Entity reference)

On view Page i want to show the result according to the artist


According to name robert i have set the CONTEXTUAL FILTERS and Relationship.but its not showing any result when removed the filter its showing all the work content type type How can I set CONTEXTUAL FILTERS and Relationship according to this enter image description here enter image description here enter image description here

1 Answer 1


You need to add a relationship to the content, and use the title (or whatever field contains "robert") as the contextual filter instead.

Currently the query that's getting built is trying to find content with an ID of "robert", which won't work as nid is numeric.

  • i have set the Content referenced from field_artist its using in the work content type for relationship May 10, 2018 at 9:18
  • I'm not sure what that means. You need to use the title from the field_artist relationship as the contextual filter
    – Clive
    May 10, 2018 at 9:23
  • In work content type , i have the field for artist and insert record according to that artist name : example "/artists" url its showing the details of all artists after click on the one of robert it redirect to this path "/artists-works/robert" . Now i want to fetch all the work content type record according to this name "robert". Now its showing me all records of work content type , May 10, 2018 at 9:38
  • I can only reiterate what I said in the answer and previous comment -that's how to fix your problem
    – Clive
    May 10, 2018 at 9:39

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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