This project is read-only.

Content Picker Field displayed in selected items

Topics: Administration, Customizing Orchard
May 15, 2014 at 5:44 PM

I have two content types (TypeA and TypeB), where TypeA has a Content Picker Field (TypeBList) with the option to select multiple items of TypeB.

The list of TypeBs when displaying TypeA shows as standard, no problem here.

From TypeB however, I also want to display a list of all TypeA that have selected TypeB in their Content Picker Field (TypeBList). You could say it's the reversed way of how it is displayed as a standard (if that makes sense).

I've tried creating a Projection with a Query like this: TypeA.TypeBList contains '{Content.Id}', but this just displays all TypeBs. I've tried to replace '{Content.Id}' with an actual ID of TypeB '13', and this works fine. Does the token of Content.Id doesn't represent the actual displayed content's id?

I'm thinking about solving this by making a custom field to achieve this instead.

Any suggestions how to do this or anyone who have done this already?