Custom Content Type with custom content part and Empty List

Topics: Customizing Orchard
Oct 29, 2012 at 11:20 PM

Hi,

 

I've created 2 content parts and 2 content type each one  contains a custom content part. After Create Table, in migration file I wrote:

 

 ContentDefinitionManager.AlterPartDefinition(typeof(PersonaPart).Name, cfg => cfg.Attachable());
ContentDefinitionManager.AlterPartDefinition( typeof(ReggimentoPart).Name, cfg => cfg.Attachable());
ContentDefinitionManager.AlterTypeDefinition("Persona", cfg => cfg                .WithPart("PersonaPart").WithPart("BodyPart").Creatable()            .Draftable()                );           

ContentDefinitionManager.AlterTypeDefinition("Reggimento", cfg => cfg                .WithPart("ReggimentoPart").WithPart("BodyPart").Creatable().Draftable()                                );

When I create a new Item of my custom types the table data are populated correctly, but my List Items is still empty. I don't find in any place populated data, through I insert Route path. Do you have any Idea?

 

Thank you very much.

Developer
Oct 31, 2012 at 8:26 PM

This is the same question as here: http://orchard.codeplex.com/discussions/401168