This project is read-only.

Questions about queries

Topics: General
Jan 22, 2014 at 10:20 PM
Edited Jan 23, 2014 at 9:54 PM
On a page rendering a content item I would like to display other content items that are related to the displayed content item through a content Picker Field. How can I achieve this?

I have two content types:
  1. ContentType "Participant"
  2. ContentType "Events" that has a Content Picker Field "OwnerParticipant" constrained to select one Participant
In the alternate Content-Particpant-Detail.cshtml I am rendering the participant data as wanted. Now I would like to additionally render a list of events that are related to the participant through the content picker field.

(1) Is there any way to do this in the .cshtml?

(2) If not, I thought about displaying the participants' events through a widget/query and a layer rule. For the query, I use content type filter "Event". Now I need to add an additional filter criteria to match only the content items participant. Is this possible?
I tried to add filter Event.OwnerParticipant contains {Content.Id} but this does not work.