문제

I tried deploying a Site Definition with a custom default.aspx page.

Within the <WebFeatures> node of the Site Definition's Onet.xml I tried to reference a Feature which would get a web part manager of the newly deployed default.aspx page.

This failed.

Why does the Feature Receiver of a dependant feature get called BEFORE modules are deployed from a Site Definition?

도움이 되었습니까?

해결책

Creating sites from Site Defs and using Feature Receivers to modify the provisioned files from the Site Def will not work. You have to pay attention to the order of the provisioning. The feature receiver is firing before the files from the site def is provisioned.

SharePoint MCM Mirjam van Olst have an excellent post explaining this: http://sharepointchick.com/archive/0001/01/01/site-definition-provisioning-order.aspx

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