This project is read-only.

Creating a projection with a custom content part

Topics: Customizing Orchard
Jan 1, 2013 at 10:24 PM

Hi All,

I'm trying to create a projection with a custom content part I have created through code, however one of the properties does not appear to be available - which is just a string prop.

 public class SummaryPart : ContentPart<SummaryPartRecord>
        public string Summary {
            get { return Record.Summary; }
            set { Record.Summary = value; }

After I initially create the SummaryPart via Migrations, I add a Media Picker field, which is available to add for the Projection.  Any ideas why I cant use Summary property in the Projection?

Many thanks in advance,


Jan 2, 2013 at 1:42 AM

You'll need to add a binding for the property.  Check the bindings tab inside of the query admin. 

Jan 2, 2013 at 11:23 PM


Thanks so much Brandon - just what I was looking for! Thanks again