70-576 · Question #128
You are designing a SharePoint 2010 solution that includes a custom site definition and a custom master page. The solution has the following three features: - A hidden site-scoped feature named X…
The correct answer is B. Include a user control in the custom master page to activate feature Z the first time the page is. See the full explanation below for the reasoning.
Question
You are designing a SharePoint 2010 solution that includes a custom site definition and a custom master page. The solution has the following three features:
- A hidden site-scoped feature named X that adds the custom master page
to the Master Page gallery.
- A Web-scoped feature named Y with a feature receiver that sets the
master page of the Web to the master page from feature X.
- A Web-scoped feature named Z with a feature receiver that populates
the default.aspx file with sample content. Any Web site that is created based on the solution's custom site definition must have the master page and the sample content applied to it automatically. Your design must ensure that features X, Y, and Z can be activated in the proper order. Which approach should you recommend?
Options
- AInclude features X, Y, and Z in that order in the onet.xml file for the site definition.
- BInclude a user control in the custom master page to activate feature Z the first time the page is
- CSet feature dependencies so that feature X is dependent upon feature Y and feature Y is
- DSet feature dependencies so that feature Y is dependent upon feature Z, and then use feature
How the community answered
(46 responses)- A4% (2)
- B72% (33)
- C15% (7)
- D9% (4)
Community Discussion
No community discussion yet for this question.