我有一个站点定义,其中我创建了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.

许可以下: CC-BY-SA归因
scroll top