Show node in view based on dropdown in seperated content type I have two content types. One content type is 'sport' and a other content type is 'teacher'. I collected the content type 'teacher' with views and I display the fields in a block (this is important for my site set-up).

My content type 'sport' is seperated from the content type 'teacher' (this is also important for my site set-up). My content type ‘sport’ is the content type where my block ‘teacher’ is showing up.

My page is look like this:



If I create a new sport like basketball, the information of soccer changes into the information about basketball and the teacher should be Rob (choose from a dropdown when creating a page from content type 'sport').
I found a solution.

I followed the following steps:


I have created an entity reference (in the content type sport)
I have created a view with relationship to the entity reference
I have created a contextual filter, content Nid with the relationship I created before to the entity reference field.


Everything works now!