onsdag 11 januari 2012

Fields missing from content type

Yesterday I ran into a strange problem. I was adding some fields to a content type. Shouldnt be any problem. I created the new fields and added the appropriate <FieldRef>-tags to my content type definition. However, after deploying and recreating the content type, the new fields was not added to the content type. The fields were created as they should and the content type definition was correct in the solution.

I just found the issue. Its a silly one which i've seen before: You can't have comments inside the <FieldRefs> section in a content type definition! Everything after the comment will be ignored.