I have a content type called DayTile which I have setup with a content picker field that is limited to HotelSection type. This type is a container for the Hotels type.
I want to render all the hotels in the HotelSection when the DayTile has that section picked. Is this possible?
From what I have tried so far, it does not seem that the HotelSection's contained items are accessible as a content picker field.
The selected content items are exposed by the
ContentPickerField
sContentItems
property (see Orchard.ContentPicker.Fields.ContentPickerField).To access this from a DayTile content item, let's say from a Razor template named "Content-DayTile.cshtml", you would do it like so: