문제

우리는 최근 SharePoint 2007에서 2010으로 업그레이드했으며 새로운 인터페이스에서 사용자를 훈련 할 준비가되지 않으므로 사이트 템플리트를 2007 Look로 다시 설정할 SPFeatureReceiver를 만들었습니다.

public override void FeatureActivated(SPFeatureReceiverProperties properties)
{
    SPWeb web = (SPWeb)properties.Feature.Parent;
    web.UIVersion = 3;
    web.UIVersionConfigurationEnabled = true;
    web.Update();
}
.

그러나이 기능이 활성화되고 모든 사이트가 괜찮을지도 모르지만 지침을 원할 수 있습니다.

사이트가 생성 될 때만이 유사한 것만으로 만 실행할 수있는 방법이 있으며 기능이 활성화 된 경우뿐만 아니라 이미 생성 된 사이트 만 남겨 두지 만 있습니까?

대신 사이트가 작성 될 때 기술적으로 활성화되어 있으므로 사이트가 작성 될 때 기술적으로 활성화되고 기존 사이트에 대해이를 수행 할 수 없으므로이 기능이 작동합니다.

도움이 되었습니까?

해결책

You should be able to use event recievers to do this, more specifically the SPWebEventReciever.

From Microsoft:

An event receiver is a piece of managed code that responds to SharePoint events when specific triggering actions occur on a SharePoint object. Triggering actions include activities such as adding, updating, deleting, moving, checking in, and checking out.

References:

http://msdn.microsoft.com/en-us/library/gg749858(v=office.14).aspx

http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.spwebeventreceiver(v=office.14).aspx

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