3. SharePoint 2010 Development
• Content Types
• Site Columns
• List and Libraries
• List Definitions
• Event Receiver on Features
• Event Receiver on Lists
• List Instances
• Page Layouts
5. Site Columns
What are site columns?
• A column represents an attribute, or piece of
metadata, that the user wants to manage for the items
in the list or content type to which they added the
column.
Possible scopes
• When you create a site column on a site, that site
column also becomes available to any child sites, and
thereby, the lists on those sites.
7. Site Columns
Type Description Type Formats
Text Single line of text
Note Multi line of text Plain Text
RichText=”FALSE” (default value)
Rich Text
RichText=”TRUE”
RichTextMode=”Compatible” (default value)
Support simple html, bold, italics, bulleted or
numbered lists, colored text, and background
colors
Enhanced Text
RichText=”TRUE”
RichTextMode=”FullHtml”
Supports additional options for hyperlinks,
pictures, and tables
8. Site Columns
Type Description Type Formats
Choice Single Choice Drop-Down Menu or Combo Box
Format=”Dropdowns”
Radio Buttons or Check Boxes
Format=”RadioButtons”
MultiChoice Select Multi Choice
Integer Integer value Minimum Value (0 for example)
Min=”0″
Maximum Value (100 for example)
Max=”100″
Decimal Places (Default is Automatic, example 2
decimal places)
Decimals=”2″
Show as Percentage (Default is False)
Percentage=”FALSE”
9. Site Columns
Type Description Type Formats
Currency Currency value Minimum Value (0 for example)
Min=”0″
Maximum Value (100 for example)
Max=”100″
Decimal Places (Default is Automatic, example 2
decimal places)
Decimals=”2″
Currency Format
This sets the display format of the currency.
LCID=”3081″
Boolean Yes/No value Yes/True = 1
No/False = 0
Lookup Lookup column from some other list
10. Site Columns
Type Description Type Formats
DateTime Date Time value Date and Time Format
Show the date only:-
Format=”DateOnly”
Show the date and time:-
Format=”DateTime”
User Select Single Person or Group People Only
UserSelectionMode=”PeopleOnly”
People and Groups
UserSelectionMode=”PeopleAndGroups”
Show field
ShowField=”Name”
MultiUser Select Multiple Persons or Groups
URL Hyperlink or Picture Hyperlink
Format=”Hyperlink”
Picture
Format=”Image”
18. Content Types
What is content type?
• A content type is simply a way to define a particular set of
information.
Possible scopes
– Farm: No
– Web Application: No
– Site Collection: Yes
– Web Site: Yes
20. Content Types
• Two valid ways to construct a content type ID
• Parent content type ID + two hexadecimal values
(the two hexadecimal values cannot be "00")
• Parent content type ID + "00" + hexadecimal
GUID
37. List Instance
What is List Instance?
• An instance or object of List created from the List
Definition.
Possible scopes
– Farm: No
– Web Application: No
– Site Collection: Yes
– Web Site: Yes
42. Event Receivers
What are Event Receivers?
• In Simple words, Event Handlers. Perform an
operation when an event occurred.
43. Event Receivers
Types of Event Receivers
List Events
- Adding/ed a new list field.
- Updating/ed a field.
List Item Events
- Adding/ed a new list item or document.
- Document checking/ed in or out.
- Adding/ed an attachment.
- Deleting/ed an item or document.
44. Event Receivers
Types of Event Receivers
List Email Events
- A list received an email.
Web Events
- Deleting/ed a site collection or site.
- Creating/ed a new site collection or sub site.
Feature Events
- Feature activating/ed or deactivating/ed.
List Workflow Events
- A workflow is starting/ed, postponed, or completed