用CAML来Provision file时,如果文件是PageLayout,则需要指定Title,ContentType和PublishingAssociatedContentType。ContentType 永远是同一个值 $Resources:cmscore,contenttype_pagelayout_name; 在resx文件里可以看到这个值= "Page Layout"。PublishingAssociatedContentType指定这个Layout所使用的Content type,格式是 ;#<content type name>;#<content type GUID>;#
如果是上传master page,则这样:
<Module>中List=“116” 适用于master page和Page Layout, url指在sharepoint网站上的虚拟目录地址,文件将被上传到那里。Path指本地相对地址,要上传的文件在这里。
Powered by: 博客园 Copyright © 夏天的感觉