SPMeta2 examples
SPMeta2 is all you need to have a testable, repeatable and upgradable way to provision fields, content types, lists, list views, webs, custom actions, security groups, permission levels, web parts, wiki pages, web part pages, publishing pages and so on - in fact, more than 100 (sic, more than a hundred) different artifacts and even more scenarios.
This page contains various scenarious which can be covered by SPMeta2 library. We constantly updates samples and API, so this page is changed as we have more features or samples.
If you cannot find scenario you are after just open a new suggestion to introduce a new feature or give us a shot at Yammer network.
Farm (2)
Web Application (3)
Site Collection (4)
Root Web (2)
Web (3)
Features (6)
- Activate OOTB site features
- Activate OOTB web features
- Disable OOTB web features
- Activate custom web features
- Disable custom web features
- Inherit OOTB features
Security (9)
- Break role inheritance on web
- Break role inheritance on list
- Reset role inheritance on list
- Reset role inheritance on web
- Add security group
- Add multiple security groups
- Assign security group to web
- Assign security group to list
- Add security role
Content Types (12)
- Add item content type
- Add document content type
- Add document set content type
- Add several content types
- Add content type with fields
- Add parent-child content types
- Reorder content type fields
- Reorder content type fields
- Remove fields from content type
- Remove content types from lists
- Reorder content type fields
- Reorder content types
Fields (8)
- Add choice field
- Add field to site
- Add field to web
- Add field to list
- Add lookup field
- Add lookup field binded to list
- Add module file to Style Library
- Add taxonomy field
Lists and Libraries (8)
- Add list by template type
- Add list by template name
- Add host Style Library
- Add host OOTB lists
- Add multiple lists
- Add promoted links list
- Add field links to list
- Add list item
List Views (3)
Folders (3)
Files (2)
Welcome Page (3)
User Custom Action (3)
Property Bags (5)
- Add property to farm
- Add property to site
- Add property to web
- Add property to list
- Add property to folder
Navigation (4)
- Add quick nav items
- Add hierarchical quick nav items
- Add top nav items
- Add hierarchical top nav items
Workflows (3)
Wiki Pages (2)
Web Part Pages (4)
Publishing Pages (3)
Web Parts (17)
- Add CEWP
- Add CEWP with link
- Add CEWP with content
- Add LVWP binded to list by Title
- Add LVWP binded to list by URL
- Add LVWP binded to list view by Title
- Add LVWP binded to calendar view
- Add Script Editor web part
- Add Script Editor web part with content
- Add web part by type
- Add web part by XML
- Add web part from Gallery File
- Add web part with pre-configured XML
- Add XLVWP binded to list by Title
- Add XLVWP binded to list by URL
- Add XLVWP binded to list view by Title
- Add Site Feed web part