1

I'm building a site for a school, with several content types:

  • A Class holds the general info about a class: description, tuition, etc. One field in the Class type is an Entity Reference for an Instructor.
  • An Instructor is the teacher of a Class.

When adding a new Class, the user will add an Instructor using the Entity Reference field (as an "autocomplete" widget). However, I also want the list of Instructors to link to the Classes each one teaches. How do I do this without having to enter the data on both the Class page and the Instructors page?

3
  • 2
    If you use Views you can add a reversed relationship and output the desired fields. Mar 7, 2015 at 16:43
  • Is that the "Referencing Entity" in Relationships?
    – Robert D.
    Mar 7, 2015 at 17:28
  • 1
    Yup, that is the one. Mar 7, 2015 at 17:29

1 Answer 1

0

Actually found a great tutorial which explains in detail how to do this: Using Views Contextual Filter and Relationship to display reference on referenced node.

Now, I have another, related, question: What if I want to include the Classes taught by the Instructor on the "list of instructors" page (which is a View)?

1
  • Please don't include a question in an answer, but post a new question instead. That way we keep question and answer together for future reference. Mar 8, 2015 at 8:45

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.