provisioning sites in sharepoint 2010 using web templates

22
Provisioning sites using Web Templates in SharePoint 2010 Chakkaradeep (Chaks) Chandran SharePoint Consultant Microsoft

Upload: chakkaradeep-chandran

Post on 12-Jun-2015

11.835 views

Category:

Technology


8 download

TRANSCRIPT

Page 1: Provisioning Sites in SharePoint 2010 Using Web Templates

Provisioning sites using Web Templates in SharePoint 2010

Chakkaradeep (Chaks) ChandranSharePoint ConsultantMicrosoft

Page 2: Provisioning Sites in SharePoint 2010 Using Web Templates

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

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

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

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

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

demo

Web Templates – Level 100

Getting Started

Page 8: Provisioning Sites in SharePoint 2010 Using Web Templates

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

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

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

demo

Web Templates – Level 200

Deep Dive

Page 12: Provisioning Sites in SharePoint 2010 Using Web Templates

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

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

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

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

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

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

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 20: Provisioning Sites in SharePoint 2010 Using Web Templates

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

Evaluate your sessionson CommNet and go inthe draw to win instantprizes

Page 22: Provisioning Sites in SharePoint 2010 Using Web Templates

© 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.