Quantcast
Channel: Question and Answer » views-contextual-filters
Viewing all articles
Browse latest Browse all 57

View based on a shared Entity Reference?

$
0
0

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:

  1. Content type called “School”.

  2. 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.

  3. 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!


Viewing all articles
Browse latest Browse all 57

Trending Articles