0

I'm working on a drupal page for an academic department, and I've created content types for Faculty, Students and Alumni. Both the Student and Alumni content types have a field for "Advisor", which is an entity reference to a Faculty member. In the student and alumni display, the advisor field then links to the advisor's page.

Now, I'd like to have the advisor page show a list of all their students (current and former). Is there a simple module that will do this? I don't want to write my own module - if there isn't a relatively simple way to do it, I can just have an entity reference in the Faculty content type and do manual entry.

1

EVA: Entity Views Attachment can help you doing this task.

"Eva" is short for "Entity Views Attachment;" it provides a Views display plugin that allows the output of a View to be attached to the content of any Drupal entity. The body of a node or comment, the profile of a user account, or the listing page for a Taxonomy term are all examples of entity content.

See this tutorial: https://www.torontowebsitedeveloper.com/drupal-video-tutorials/drupal-7-node-reference-tutorial

"Entity Views Attach: Use Views Almost Anywhere" contains a great tutorial about it.

  • This was perfect - exactly what I needed. Thanks! – icurays1 Jul 19 '17 at 16:54
  • @icurays1 you're welcome, good luck with your project ;-) – Adrian Cid Almaguer Jul 19 '17 at 17:00

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.