17. Page Layouts, Content Types, Site Columns GeneralPage Content Type Title Title Description Page Content Page Image Vincent van Gogh Gogh was a Dutch Post-Impressionist artist who live in the 1800s. Van Gogh spent his early adult life working for a firm of art dealers. After a brief spell as a teacher, he became a missionary worker in a very poor mining region. He did not embark upon a career as an artist until 1880. Vincent van Gogh Gogh was a Dutch Post-Impressionist artist who live in the 1800s. Van Gogh spent his early adult life working for a firm of art dealers. After a brief spell as a teacher, he became a missionary worker in a very poor mining region. He did not embark upon a career as an artist until 1880. Description Page Content Page Image GeneralPageLayout.aspx
40. Field Control – Summary Demo Rendering Template Rendering Control Naming Convention - field_type_nameFieldControl Edit Mode Display Mode The Rendering Template is referenced by its ID value in the Rendering Control object's TemplateName property BaseFieldControl-derived rendering control handles interaction with users Its plain simple HTML/ASCX code
44. Field Class – Summary Demo Naming Convention - field_type_nameField Field class should inherit either SPField or one of the various other SPField classes InPagePod inherits from SPFieldMultiColumn Override the FieldRenderingControlproperty which returns the control that can be used to render the field in Edit and Display mode Field Class object handles interactions with the content database
46. Field Value Demo String Value (Or) titleImgUrl;podContent;contentImageUrl Custom Value Class SPFieldMultiColumnSPFieldMultiColumnValue SPFieldUrl SPFieldUrlValue ;#TitleImage;#PodContent;#ContentImage;#
49. Field Value– Summary Demo Naming Convention - field_type_nameFieldValue String Value Custom Value Class A custom field value class must implement at least two constructors, and usually only two SharePoint delimiter - ;#
56. Field Validation – Summary Demo Validate the control values before setting the field values in the Field Control class Set the IsValidto false Set the ErrorMessageto an appropriate error message Override the Validate method in the Field Control class Set the IsValidto false Set the ErrorMessageto an appropriate error message Override the GetValidatedString in the Field class Throw SPFieldValidationException as an error
61. Custom Field – Deployment Demo *.ascx Rendering Template 12EMPLATEONTROLTEMPLATESbr />Rendering Control Class *.cs (.dll) Field Control Class fldtypes*.xml GAC Field Class Field Value Class Field Type Definition 12EMPLATEMLbr />*.WSP
64. Resources Demo Web Content Management Resource Center for SharePoint Server http://bit.ly/moss-wcm SharePoint Server Developer Center http://bit.ly/moss-dev MSDN: How to Create a Custom Field Control http://bit.ly/custom-field-control Chaks’ Blog http://bit.ly/chaks Robert Stewart’s Blog http://bit.ly/robert-stewart