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?
solution:
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 .
source: https://stackoverflow.com/questions/25114501/error-in-displaying-the-custom-content-type-of-each-list
No comments:
Post a Comment