Rihab BEN CHHIBA
Rihab BEN CHHIBA

Reputation: 67

Error in displaying the custom Content type of each list

I have created several custom lists in my project and I affected to each one a custom content type .

After deploying the project and exploring my SharePoint site , there is only one content type which is added to all list instances.

I'm sure that the schema.xml of each list contains its custom content type ( ID and fields ).

Am I missing something else in my Project?

Can anyone help me please?

Upvotes: 0

Views: 541

Answers (1)

Rihab BEN CHHIBA
Rihab BEN CHHIBA

Reputation: 67

The problem is resolved when I put each List Definition in a separate feature .

At first time , I used to put all List Definitions in the same feature , then I put the ID of this feature in element.xml file of each list Instance as featureId Attribute .

Automatically , each list instance references to the first List Definition of the feature , then it displays the fields and the content type related to this list Definition .

Upvotes: 2

Related Questions