![Page 1: Provisioning Sites in SharePoint 2010 Using Web Templates](https://reader035.vdocuments.us/reader035/viewer/2022062706/557ad6e8d8b42a85648b4643/html5/thumbnails/1.jpg)
Provisioning sites using Web Templates in SharePoint 2010
Chakkaradeep (Chaks) ChandranSharePoint ConsultantMicrosoft
![Page 2: Provisioning Sites in SharePoint 2010 Using Web Templates](https://reader035.vdocuments.us/reader035/viewer/2022062706/557ad6e8d8b42a85648b4643/html5/thumbnails/2.jpg)
Session Objectives and Takeaways
Site Provisioning MethodsWeb Templates – Getting StartedWeb Templates – Deep DiveProgrammatically accessing web templatesTips and Tricks
Demos
![Page 3: Provisioning Sites in SharePoint 2010 Using Web Templates](https://reader035.vdocuments.us/reader035/viewer/2022062706/557ad6e8d8b42a85648b4643/html5/thumbnails/3.jpg)
Site Provisioning Methods
Site Definitions
webtemp*.xmlonet.xml
Feature StaplingSite Templates
(Save As)
Custom Site Definitions
Provisioning Providers
Custom Code
Web Templates Existing Site Definition
Elements.xml + onet.xml Features
![Page 4: Provisioning Sites in SharePoint 2010 Using Web Templates](https://reader035.vdocuments.us/reader035/viewer/2022062706/557ad6e8d8b42a85648b4643/html5/thumbnails/4.jpg)
Why Web Templates?
Developers want easy way to provision sitesBased on standard SharePoint site definitionsSomething that is completely Feature BasedNo access to file server (Sandboxed!!!)
Cloud Power
![Page 5: Provisioning Sites in SharePoint 2010 Using Web Templates](https://reader035.vdocuments.us/reader035/viewer/2022062706/557ad6e8d8b42a85648b4643/html5/thumbnails/5.jpg)
How to build one?
Web Templates Existing Site Definition
Elements.xml + onet.xml Features
Elements.xml onet.xml
![Page 6: Provisioning Sites in SharePoint 2010 Using Web Templates](https://reader035.vdocuments.us/reader035/viewer/2022062706/557ad6e8d8b42a85648b4643/html5/thumbnails/6.jpg)
Farm or Site?Farm scoped feature
Available for the whole farm Site scoped feature
Available for a particular site collection
![Page 7: Provisioning Sites in SharePoint 2010 Using Web Templates](https://reader035.vdocuments.us/reader035/viewer/2022062706/557ad6e8d8b42a85648b4643/html5/thumbnails/7.jpg)
demo
Web Templates – Level 100
Getting Started
![Page 8: Provisioning Sites in SharePoint 2010 Using Web Templates](https://reader035.vdocuments.us/reader035/viewer/2022062706/557ad6e8d8b42a85648b4643/html5/thumbnails/8.jpg)
Activating Site Features (onet.xml)
The SiteFeatures element contains references to site collection features to include in the site templateFeatures listed in SiteFeatures element are activated only during root site creationFeatures listed in SiteFeatures element are not activated during sub-site creation
workaround
![Page 9: Provisioning Sites in SharePoint 2010 Using Web Templates](https://reader035.vdocuments.us/reader035/viewer/2022062706/557ad6e8d8b42a85648b4643/html5/thumbnails/9.jpg)
Activating Site Features (Sandboxed Solutions) When you activate a
sandboxed solution:Site features get automatically activated
![Page 10: Provisioning Sites in SharePoint 2010 Using Web Templates](https://reader035.vdocuments.us/reader035/viewer/2022062706/557ad6e8d8b42a85648b4643/html5/thumbnails/10.jpg)
Web Template ID
Web Templates Existing Site Definition
Elements.xml + onet.xml Features
Records the Publishing template ID
workaround
{featureGUID}#WebTemplateName
![Page 11: Provisioning Sites in SharePoint 2010 Using Web Templates](https://reader035.vdocuments.us/reader035/viewer/2022062706/557ad6e8d8b42a85648b4643/html5/thumbnails/11.jpg)
demo
Web Templates – Level 200
Deep Dive
![Page 12: Provisioning Sites in SharePoint 2010 Using Web Templates](https://reader035.vdocuments.us/reader035/viewer/2022062706/557ad6e8d8b42a85648b4643/html5/thumbnails/12.jpg)
Programmatically Accessing Web Templates
SharePoint identifies your web template with the following:{FeatureGuid}#WebTemplateName
C# PowerShell – Site Scoped
PowerShell – Farm Scoped
![Page 13: Provisioning Sites in SharePoint 2010 Using Web Templates](https://reader035.vdocuments.us/reader035/viewer/2022062706/557ad6e8d8b42a85648b4643/html5/thumbnails/13.jpg)
Tips and Tricks
Start from a simple site templateSharePointRoot\TEMPLATE\SiteTemplates
Farm Scoped – Creating a root site collectionSite Scoped – Creating a sub site
![Page 14: Provisioning Sites in SharePoint 2010 Using Web Templates](https://reader035.vdocuments.us/reader035/viewer/2022062706/557ad6e8d8b42a85648b4643/html5/thumbnails/14.jpg)
Tips and Tricks
In Web Templates, you can only use Configuration ID 0
The Configuration element in the onet.xml file specifies the various lists and modules
Avoid Modules, Use FeaturesFeature Stapling is not available with Web TemplatesWeb Templates do not support Variations
![Page 15: Provisioning Sites in SharePoint 2010 Using Web Templates](https://reader035.vdocuments.us/reader035/viewer/2022062706/557ad6e8d8b42a85648b4643/html5/thumbnails/15.jpg)
Review: Session Objectives and Takeaways
Site Provisioning MethodsWeb Templates – Getting StartedWeb Templates – Deep DiveProgrammatically accessing web templatesTips and Tricks
Demos
![Page 16: Provisioning Sites in SharePoint 2010 Using Web Templates](https://reader035.vdocuments.us/reader035/viewer/2022062706/557ad6e8d8b42a85648b4643/html5/thumbnails/16.jpg)
Related Content - Thursday
Developing Windows Phone 7 Applications for SharePoint9:00 New Zealand 4
Real world service application federation with SharePoint 201010:40 Ballroom 2
Provisioning sites using Web Templates in SharePoint 201011:55 Ballroom 2
PowerShell and SharePoint: it’s not just for the SharePoint IT Pro1:55 Ballroom 2
![Page 17: Provisioning Sites in SharePoint 2010 Using Web Templates](https://reader035.vdocuments.us/reader035/viewer/2022062706/557ad6e8d8b42a85648b4643/html5/thumbnails/17.jpg)
Related Content - Thursday
The SharePoint 2010 Search Service Decoupled3:10 New Zealand 3
Creating a Federated Extranet with ADFSv2 and SharePoint 20103:10 New Zealand 4
SharePoint 2010 Composites: Do-It-Yourself Business Solutions4:30 Ballroom 2
Visualizing data and bringing business process to life with Visio Services5:45 Ballroom 2
![Page 18: Provisioning Sites in SharePoint 2010 Using Web Templates](https://reader035.vdocuments.us/reader035/viewer/2022062706/557ad6e8d8b42a85648b4643/html5/thumbnails/18.jpg)
Related Content - Friday
Using Visual Studio 2010 to Create SharePoint Load Tests10:40 Ballroom 2
SharePoint 2010 and Project Server 2010 Together11:55 Ballroom 2
What every developer should know about Office1:55 Ballroom 2
SharePoint Throttling Explained3:10 Ballroom 2
![Page 19: Provisioning Sites in SharePoint 2010 Using Web Templates](https://reader035.vdocuments.us/reader035/viewer/2022062706/557ad6e8d8b42a85648b4643/html5/thumbnails/19.jpg)
Track Resources
SharePoint and FAST Search VM
SharePoint 2010 Capacity Planning
Search Topology
Upgrade and migration resource center
Resource Centers
FAST Search Capacity Planning
Current SharePoint Public Websites (wssdemo)
![Page 20: Provisioning Sites in SharePoint 2010 Using Web Templates](https://reader035.vdocuments.us/reader035/viewer/2022062706/557ad6e8d8b42a85648b4643/html5/thumbnails/20.jpg)
Resources
Microsoft Certification & Training Resources
Resources for IT Professionals Resources for Developers
www.microsoft.com/learning
http://microsoft.com/technet http://microsoft.com/msdn
Learning
http://newzealand.msteched.com
Connect. Share. Discuss.
![Page 21: Provisioning Sites in SharePoint 2010 Using Web Templates](https://reader035.vdocuments.us/reader035/viewer/2022062706/557ad6e8d8b42a85648b4643/html5/thumbnails/21.jpg)
Evaluate your sessionson CommNet and go inthe draw to win instantprizes
![Page 22: Provisioning Sites in SharePoint 2010 Using Web Templates](https://reader035.vdocuments.us/reader035/viewer/2022062706/557ad6e8d8b42a85648b4643/html5/thumbnails/22.jpg)
© 2011 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries.The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to
be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS
PRESENTATION.