所以我创建了一个自定义RenderingTemplate并将其部署到CONTROLTEMPLATES\MyControlTemplates\
它基本上决定了我创建的自定义内容类型在显示时应该如何呈现.为此,我添加了这个:
<FormTemplates xmlns="http://schemas.microsoft.com/sharepoint/v3/contenttype/forms">
<Display>CustomDispForm</Display>
</FormTemplates>
Run Code Online (Sandbox Code Playgroud)
但是,当SharePoint位于CONTROLTEMPLATES的子目录中时,SharePoint找不到我的自定义RenderingTemplate.但是,如果我将它移动到CONTROLTEMPLATES的根目录\ SharePoint将找到它.
根据文档,SharePoint也应该查看子目录,但似乎并非如此.这可能是个错误吗?我想看看我是否错过了什么,因为我更喜欢在root/<Custom>目录中放置自定义内容.
谢谢.