How to create a feature stapler for all webtemplates?
-
03-10-2020 - |
Pergunta
I have created a delegate control and try to provision it to all new site collections. It is working now only for the web template "MySite".
How to make it possible to provision this feature for all web templates?
<?xml version="1.0" encoding="utf-8"?>
<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
<FeatureSiteTemplateAssociation Id="{464b78de-c14e-4c88-bd52-00136fc899f4}" TemplateName="SPSPERS#2" />
</Elements>
Solução
Use GLOBAL
as TemplateName
.
<?xml version="1.0" encoding="utf-8"?>
<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
<FeatureSiteTemplateAssociation Id="{464b78de-c14e-4c88-bd52-00136fc899f4}" TemplateName="GLOBAL" />
</Elements>
Licenciado em: CC-BY-SA com atribuição
Não afiliado a sharepoint.stackexchange