Stapler Scope and Sequence of Activation - Farm scoped features are activated in the below order.
- Features from site definition
- Features without activation dependencies from stapler
- Features with activation dependencies from stapler (in correct sequence)
Following test Scenarios will be very helpful in developing feature stapling soltuions.
Scenario | Activation Type | Success? | Notes |
Activate hidden site-scoped feature using staple feature | Automatic | Yes | Staple feature can be used to activate a hidden site-scoped feature. |
Activate visible site-scope feature using staple feature | Automatic | No | Staple feature cannot be used to activate a visible site-scoped feature. |
Activate hidden web-scoped feature using staple feature | Automatic | Yes | Staple feature can be used to activate a hidden web-scoped feature. |
Activate visible web-scoped feature using staple feature | Automatic | Yes | Staple feature can be used to activate visible web-scoped features. |
Activate web-scoped feature using a stapled hidden site-scoped feature | Automatic | No | Hidden features cannot activate other features. |
Manually activate web-scoped feature with dependency on another visible web-scoped feature | Manual | Yes | Manually activating a web-scoped feature can be used to activate another web-scoped feature. |
Manually activate web-scoped feature that has a dependency on a hidden site scoped-feature | Manual | No | Web-scoped feature cannot activate a hidden site-scoped feature. This would be a cross-scoped feature that attempts to activate a feature across scopes to a higher level scope. |
Manually activate site-scoped feature using a web-scoped feature | Manual | No | Although web-scoped features can have dependencies on site-scoped features they cannot activate them. |
Reference - http://sharepoint.microsoft.com/Blogs/GetThePoint/Lists/Posts/Post.aspx?ID=607
Ads by Google
No comments:
Post a Comment