0

I have a site definition in which I create 3 document libraries. I have also created 3 contenttypes which I'd like to apply to each of these libraries.

Can this be done in my Site Definition or can the contenttypes only be applied through code?

2
  • Look in to ContentTypeBindings module, or use List definitions where you add the content types to your list – Robert Lindgren Dec 16 '13 at 15:27
  • @RobertLindgren Ended up making list definitions and features, worked like a charm. Post your comment as answer and I'll mark it. – user2536 Dec 17 '13 at 12:08
0

Look in to ContentTypeBindings module, or use List definitions where you add the content types to your list.

These are the no-code solutions. Of course you could also have a feature receiver or event receiver on list added that adds your content types to lists.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy