Module 2 - Lists and Sites
-
Upload
qais-akhtar -
Category
Documents
-
view
217 -
download
0
Transcript of Module 2 - Lists and Sites
-
8/10/2019 Module 2 - Lists and Sites
1/19
02 | Lists and Sites
Chris Johnson | SharePoint Guru
Christopher Harrison | Microsoft Certified Trainer
-
8/10/2019 Module 2 - Lists and Sites
2/19
Module Overview
omponent Overview
Defining ustom Lists
Defining ustom Sites
-
8/10/2019 Module 2 - Lists and Sites
3/19
Lesson 1: Component Overview
The omponent Hierarchy
Site olumns
Site ontent Types
List olumns and ontent Types
-
8/10/2019 Module 2 - Lists and Sites
4/19
The Component Hierarchy
Web application
Site Collection
Site Site columns
Site content types
List/Library Columns/Fields
Content types
List item
Column/Field
-
8/10/2019 Module 2 - Lists and Sites
5/19
Site Columns
Definition not implementation
Scopes Site
Properties Display name Internal name Data type
Group Required
Creation Declarative SharePoint Object Model SharePoint UI
-
8/10/2019 Module 2 - Lists and Sites
6/19
Site Content Types
Collection of columns
Definition not implementation Scopes
Site
Hierarchical Item
Announcement Document Folder Custom
Creation Declarative SharePoint Object Model
SharePoint UI
-
8/10/2019 Module 2 - Lists and Sites
7/19
List Columns and Content Types
SiteSite Column Site Content Type
List
List Column
Copy of site column
Standalone list
column
List Content Type
Copies columns froContent Type
-
8/10/2019 Module 2 - Lists and Sites
8/19
DEMOCreating Site Columns and Content Types
-
8/10/2019 Module 2 - Lists and Sites
9/19
Lesson 2: Defining Custom Lists
Introduction to List Templates
Developing List Templates
The Visual Studio List Designer
-
8/10/2019 Module 2 - Lists and Sites
10/19
Introduction to List Templates
Define list template
Content types Fields
Views
Forms
Create list instance Declarative (Feature)
Programmatic (SharePoint object model)
-
8/10/2019 Module 2 - Lists and Sites
11/19
Developing List Templates
List template Feature Feature.xml file (in the root of the Feature folder)
Manifest.xmlfile (optionally in a sub-folder, can have any name, but must be refeFeature.xml file)
ListName folder (determined by the value of the Nameattribute of the ListTempmanifest)
Schema.xml file
Manifest.xml
Schema.xml
-
8/10/2019 Module 2 - Lists and Sites
12/19
The Visual Studio List Designer
Manage
Columns Content types
Views
Title
Url
Description
Faster (select from lists, no need to lookup GUIDs)
Easier (no need to write XML)
Reduced risk (less chance of typographical error)
-
8/10/2019 Module 2 - Lists and Sites
13/19
DEMODefining Lists and List Templates
-
8/10/2019 Module 2 - Lists and Sites
14/19
Lesson 3: Defining Custom Sites
Introduction to Site Definitions and Web Templates
Developing a Site Definition Declaratively
Deploying Site Definitions
d f d b
-
8/10/2019 Module 2 - Lists and Sites
15/19
Introduction to Site Definitions and Web Tem
Site definition
Deploy with a farm solution Not dependent on any other component
Time consuming to develop
Cached by the IIS worker process for performance
Web template Deploy with a sandboxed or farm solution
Dependent on source site definition
Fast to develop SPWeb.SaveAsTemplate
Not cached for performance
l S f l l
-
8/10/2019 Module 2 - Lists and Sites
16/19
Developing a Site Definition Declarativel
Webtemp*.xml
Template and configuration definitions
Onet.xml Site content and structure
Supporting files (pages, images, and so on)
Assemblies
D l i Si D fi i i
-
8/10/2019 Module 2 - Lists and Sites
17/19
Deploying Site Definitions
webtemp.*.xml
15\TEMPLATE\LCID\XML
Assemblies Global assembly cache
Everything else (including onet.xml file) 15\TEMPLATE\SiteTemplates\SiteTemplateName
15\TEMPLATE\SiteTemplates\SiteTemplateName\XML\on
-
8/10/2019 Module 2 - Lists and Sites
18/19
DEMOCreating a Simple Site Definition
-
8/10/2019 Module 2 - Lists and Sites
19/19
2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Office, Azure, System Center, Dynamics and other produc t names are or may be registered trade
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 pre
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
the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.