SharePoint does not find my own RenderingTemplate

So, I created a custom RenderingTemplate and deployed it to CONTROLTEMPLATES \ MyControlTemplates \

It basically defines how the custom content type to be created should be displayed on display. For this, I added the following:

<FormTemplates xmlns="http://schemas.microsoft.com/sharepoint/v3/contenttype/forms"> <Display>CustomDispForm</Display> </FormTemplates> 

However, SharePoint does not find my custom RenderingTemplate when it is in the CONTROLTEMPLATES subdirectory. But if I translate it to the root CONTROLTEMPLATES \ SharePoint will find it.

According to the documentation, SharePoint should also be searched in subdirectories, but this does not seem to be the case. So maybe this is a mistake? I would like to see if I missed something because I really prefer to add custom stuff to root / <Custom> directories.

Thanks.

+4
source share
1 answer

I noticed the same behavior when installing control templates in the user directory. You are right, SharePoint should also look in the default subdirectories (the exact location in the configuration files is eluding me at the moment), but it seems that this is not so.

I downloaded my templates programmatically, maybe this is an option for you too? You can find more information here: http://www.reversealchemy.net/2008/09/01/loading-sharepoint-templates-from-a-different-location/

Regards, Erik

+5
source

Source: https://habr.com/ru/post/1277685/


All Articles