Where should I "bind" content types to my list?
I need to bind two different custom content types. I tried to do it in the list definition but the changes did not take affect. Doing it next to the list instance did work, but would not work if i create a new list throe the web user interface.
Next to list instance
<ListInstance> </ListInstance> <ContentTypeBinding ContentTypeId="" ListUrl="">
Worked, but only for the created by the CAML definition.
Inside the list template
<List> <MetaData> <ContentTypes> <ContentTypeRef ID=""/>
This did not work. Anything special to think of here?
Add them through an Event receiver
One method I came to my mind, that I haven't tried yet, is to add the content types whit an event receiver when creating the list? It should work but feels more complicated than using CAML.