문제

우리는 Visual Studio에 2 개의 프로젝트가 있습니다.

프로젝트 1에는 2 개의 기능이 있습니다.

        Feature A is site scoped module 
        Feature B is web application scoped feature stapler. (empty element with FeatureSiteTemplateAssociation)
.

프로젝트 2에는 목록을 배포하는 1 개의 기능 (기능 x)이 있습니다.

FITERS X의 기능 ID를 프로젝트 1의 빈 요소 (기능 B)의 기능 ID를 다음과 같이 넣으려고합니다. PROMENTACODICETAG 코드

이 좋은 연습입니까?

도움이 되었습니까?

해결책

There is n o restriction as such that both the features should be in same project. It is always good practice to keep a separate project for site columns/content types/List & Libraries.Below are the points to be kept in mind while creating feature stapling:

  1. Staplee feature should be having higher scope than stapled feature. eg: if stapled feature is site collection or web scope , then staplee feature should be web app scoped.

  2. Since you are trying to activate the feature in every template ie TemplateName="GLOBAL" , it is helpful to understand about the AllowGlobalFeatureAssociations property of templates. If this property is set to FALSE, global association features will not be activated.So for such templates you will have to explicitly add FeatureSiteTemplateAssociation .Shared Services Provider site template and the Blank Site site template use the AllowGlobalFeatureAssociations="FALSE" property. Read this blog for more info.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 sharepoint.stackexchange
scroll top