View
11.835
Download
8
Category
Tags:
Preview:
Citation preview
Provisioning sites using Web Templates in SharePoint 2010
Chakkaradeep (Chaks) ChandranSharePoint ConsultantMicrosoft
Session Objectives and Takeaways
Site Provisioning MethodsWeb Templates – Getting StartedWeb Templates – Deep DiveProgrammatically accessing web templatesTips and Tricks
Demos
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
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
How to build one?
Web Templates Existing Site Definition
Elements.xml + onet.xml Features
Elements.xml onet.xml
Farm or Site?Farm scoped feature
Available for the whole farm Site scoped feature
Available for a particular site collection
demo
Web Templates – Level 100
Getting Started
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
Activating Site Features (Sandboxed Solutions) When you activate a
sandboxed solution:Site features get automatically activated
Web Template ID
Web Templates Existing Site Definition
Elements.xml + onet.xml Features
Records the Publishing template ID
workaround
{featureGUID}#WebTemplateName
demo
Web Templates – Level 200
Deep Dive
Programmatically Accessing Web Templates
SharePoint identifies your web template with the following:{FeatureGuid}#WebTemplateName
C# PowerShell – Site Scoped
PowerShell – Farm Scoped
Tips and Tricks
Start from a simple site templateSharePointRoot\TEMPLATE\SiteTemplates
Farm Scoped – Creating a root site collectionSite Scoped – Creating a sub site
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
Review: Session Objectives and Takeaways
Site Provisioning MethodsWeb Templates – Getting StartedWeb Templates – Deep DiveProgrammatically accessing web templatesTips and Tricks
Demos
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
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
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
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)
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.
Evaluate your sessionson CommNet and go inthe draw to win instantprizes
© 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.
Recommended