将内容类型应用于站点定义中的列表
-
10-12-2019 - |
题
我有一个站点定义,其中我创建了3个文档库。我还创建了3个ContentTypes,我想适用于每个库。
这可以在我的网站定义中完成,或者只能通过代码应用contentTypes?
解决方案
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.