Summary:
I am trying to create a view that displays all “Lesson Plans” from a school that the current user is associated with.
The setup:
-
Content type called “School”.
-
Content type called “Lesson Plan” that has a field called “School” that allows you to select a school via an entity reference to the “School” content type.
-
A field in the User registration form that allows the registering user to select a school via an entity reference to the “School” content type.
Use case:
The logged-in user goes to a “My School’s Lessons” page where they can see a list of all of the lesson plans that users from their school have submitted.
The problem:
Basically, this shared entity reference is throwing me off and I’m struggling, conceptually, with what relationships and/or contextual filters I need to have in place to make this work. I’ve tried all kinds of combinations, but I can’t get anything to be returned (let alone the correct values).
A conceptual description of what I need to do here would be most appreciated!