HOME EVIDENCE EXECUTION MICROSOFT SOLUTIONS SERVICES PARTNERS Custom Field Controls and SharePoint Web Content Management Chakkaradeep Chandran Robert.

Slides:



Advertisements
Similar presentations
Creating Page Layouts using SharePoint Designer or Visual Studio Becky Bertram MCSD, MCAD MCTS WSS Development MCTS MOSS Development
Advertisements

Site Collection, Sites and Sub-sites
Microsoft Office SharePoint Portal Server 2007 Introduction to InfoPath Forms Services Daryl L. Rudolph.
Extreme User Interfaces for Alfresco Kevin Dorr Sr. Solutions Engineer Americas Channel.
Microsoft Office ® Access 2007 Microsoft Office Access 2007: Introduzione allo sviluppo Fabio Santini.NET Developer Evangelist Microsoft Italy.
SharePoint 2013 Catalog Sites Brian Culver ● SharePoint Saturday DFW ● March 7, 2015 Build a SharePoint 2013 Search Driven.
1 of 6 This document is for informational purposes only. MICROSOFT MAKES NO WARRANTIES, EXPRESS OR IMPLIED, IN THIS DOCUMENT. © 2007 Microsoft Corporation.
1 of 6 This document is for informational purposes only. MICROSOFT MAKES NO WARRANTIES, EXPRESS OR IMPLIED, IN THIS DOCUMENT. © 2007 Microsoft Corporation.
1 of 6 This document is for informational purposes only. MICROSOFT MAKES NO WARRANTIES, EXPRESS OR IMPLIED, IN THIS DOCUMENT. © 2007 Microsoft Corporation.
Customizing Outlook. Forms Window in which you enter and view information in Outlook Outlook Form Designer The environment in which you create and customize.
1 of 5 This document is for informational purposes only. MICROSOFT MAKES NO WARRANTIES, EXPRESS OR IMPLIED, IN THIS DOCUMENT. © 2007 Microsoft Corporation.
Chapter 1 Getting Started With Dreamweaver. Explore the Dreamweaver Workspace The Dreamweaver workspace is where you can find all the tools to create.
1 of 5 This document is for informational purposes only. MICROSOFT MAKES NO WARRANTIES, EXPRESS OR IMPLIED, IN THIS DOCUMENT. © 2006 Microsoft Corporation.
Tutorial 11: Connecting to External Data
Tutorial 3: Adding and Formatting Text. 2 Objectives Session 3.1 Type text into a page Copy text from a document and paste it into a page Check for spelling.
Creating a SharePoint App with Microsoft Access Services
InfoPath and SharePoint WCM So Happy Together. Overview Although we frequently think of data collection sites as being internal or intranet sites, and.
Microsoft Certification Exam Coaching Session: Application Development.
Branding SharePoint 2007 March 19, 2008 Lori Neff, SharePoint Designer.
Microsoft Office System UK Developers Conference Radisson Edwardian, Heathrow 29 th & 30 th June 2005.
1 of 5 This document is for informational purposes only. MICROSOFT MAKES NO WARRANTIES, EXPRESS OR IMPLIED, IN THIS DOCUMENT. © 2007 Microsoft Corporation.
A GUIDE TO SHAREPOINT 2007 CUSTOMIZATION OPTIONS Heather Solomon, WSS MVP.
UNIT-V The MVC architecture and Struts Framework.
Welcome to the Nebraska SharePoint User Group May 7 th, 2008 Enterprise Content Management (ECM) in SharePoint Corey Erkes.
Introduction to SharePoint Development with VS2010 Paul Yuknewicz Lead Program Manager
Microsoft Expression Web - Illustrated Unit B: Creating a Web Site.
>To add a component via Page Editor, go to the View tab and check the Designing checkbox to enter Designing mode. >Next, simply click the Component button.
Website Design CLA – Transportation. Defining a Site Select: Site – New - Site Click Next.
Database-Driven Web Sites, Second Edition1 Chapter 8 Processing ASP.NET Web Forms and Working With Server Controls.
Overview of Previous Lesson(s) Over View  ASP.NET Pages  Modular in nature and divided into the core sections  Page directives  Code Section  Page.
Tutorial 1: Getting Started with Adobe Dreamweaver CS4.
Developing Workflows with SharePoint Designer David Coe Application Development Consultant Microsoft Corporation.
Creating Page Layouts using SharePoint Designer or Visual Studio Becky Bertram MVP SharePoint Server, MCSD, MCAD
Copyright © 2008 Pearson Prentice Hall. All rights reserved. 1 Exploring Microsoft Office Word 2007 Chapter 8 Word and the Internet Robert Grauer, Keith.
Business Solutions Using Microsoft ® Office SharePoint ® Server ROADSHOW.
SharePoint and Open XML Using SharePoint as a Data Source for your custom Open XML Documents Presented by Becky Bertram MCSD, MCAD, MCTS
Web Programming: Client/Server Applications Server sends the web pages to the client. –built into Visual Studio for development purposes Client displays.
Basic Developer Knowledge That Every SharePoint Admin Must Have Randy Williams, MVP MOSS Synergy Corporate Technologies
Microsoft Office Solution Accelerator for Six Sigma – A Case Study in Project Server Customization Brian Smith Program Manager Information Worker New.
Minneapolis Office Developer Interest Group (MODIG) March 25, 2008 Custom Column Development Neil Iversen Inetium
Microsoft SharePoint Server 2010 for the Microsoft ASP.NET Developer Yaroslav Pentsarskyy
Searching Business Data with MOSS 2007 Enterprise Search Presenter: Corey Roth Enterprise Consultant Stonebridge Blog:
2 Creating Content Centric Publishing Sites with Microsoft Office SharePoint Server 2007 Zac Smith MVP SharePoint Technologies Trinkit Mark Orange MVP.
TRAINING SESSIONS.NET Controls.  Standard Controls  Label  Textbox  Checkbox  Button, Image Button, Image control  Radio Button  Literal  Hyperlink.
Michael Hofer Senior Consultant Microsoft Corporation.
Building Dashboards SharePoint and Business Intelligence.
WikiPlus Configurations Configure WikiPlus elements to your needs.
Chapter 1 Getting Started With Dreamweaver. Exploring the Dreamweaver Workspace The Dreamweaver workspace is where you can find all the tools to create.
Microsoft ® Official Course Developing a Publishing Site for Web Content Microsoft SharePoint 2013 SharePoint Practice.
Exploring Microsoft Microsoft FrontPage Chapter 21 Exploring Microsoft FrontPage 2002 Chapter 1 Creating a Home Page: Introduction to MS FrontPage.
Reduce, Reuse, Recycle. Housekeeping… Download EventBoard Mobile and remember to fill out session evaluations… Phasers set to stun, mobile devices set.
Transportation Agenda 165. Transportation About Pages Pages organize and present information Pages are files that end in.aspx 166.
NET Development on Microsoft SharePoint Technology Part 4: Templates, Features, and Solution Deployment Mick Badran Breeze Training Consulting Trainer.
JavaScript Introduction and Background. 2 Web languages Three formal languages HTML JavaScript CSS Three different tasks Document description Client-side.
Building Custom Controls with ASP.NET and the Microsoft ®.NET Framework Rames Gantanant Microsoft Regional Director, Thailand
The 2007 Microsoft Office System Servers Enterprise Content Management, Workflow and Forms Martin Parry Developer and Platform Group, Microsoft Ltd
CHAPTER 7 LESSON C Creating Database Reports. Lesson C Objectives  Display image data in a report  Manually create queries and data links  Create summary.
Developer Exam Preparation Thom Robbins Bryan Soltis
Integrating and Extending Workflow 8 AA301 Carl Sykes Ed Heaney.
Software services delivering SharePoint, Mobile, and Business Intelligence solutions Understanding and implementing the remote provision pattern in SharePoint.
Wes Preston DEV 202. Audience: Info Workers, Dev A deeper dive into use-cases where client-side rendering (CSR) and SharePoint’s JS Link property can.
17 Copyright © 2006, Oracle. All rights reserved. Information Publisher.
Microsoft Virtual Academy Jamie McAllister | SharePoint MVP & Solution Architect Rob Latino | Program Manager in Office 365 Support.
Making the Most of Search in SharePoint 2013 Christina Wheeler.
Spice up Your Forms and Views
INF230 Basics in C# Programming
About SharePoint Server 2007 My Sites
SharePoint Online Development Best Practices
Visual Studio 2010 SharePoint Development Tools Overview
SharePoint Foundation 2010
Presentation transcript:

HOME EVIDENCE EXECUTION MICROSOFT SOLUTIONS SERVICES PARTNERS Custom Field Controls and SharePoint Web Content Management Chakkaradeep Chandran Robert Stewart

HOME EVIDENCE EXECUTION MICROSOFT SOLUTIONS SERVICES PARTNERS  Intergen – “powered by Microsoft Office SharePoint” Demo  The relationship between page layouts, content types and site columns in Publishing Sites  The role of Content Types in a Publishing Site  Custom Field Types  Web Parts Vs Field Controls as content regions  Custom field type development topics Session Objectives

HOME EVIDENCE EXECUTION MICROSOFT SOLUTIONS SERVICES PARTNERS Demo Intergen “powered by Microsoft Office SharePoint” demo

HOME EVIDENCE EXECUTION MICROSOFT SOLUTIONS SERVICES PARTNERS  SharePoint provides Web Content Management (WCM) functionality out of the box  WCM features are provided primarily by the Publishing Site feature  Several standard SharePoint components work together to provide WCM functionality  Key Components of a Publishing Site  Site Columns  Content Types  Field Controls  Page Layouts  Document Libraries  Lists SharePoint and WCM

HOME EVIDENCE EXECUTION MICROSOFT SOLUTIONS SERVICES PARTNERS TitleDescriptionPage ContentPage Image Vincent van GoghGogh 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… PortraitOne.jpg 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 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 GeneralPage Content Type Title Description Page Content Page Image GeneralPageLayout.aspx Page Layouts, Content Types, Site Columns

HOME EVIDENCE EXECUTION MICROSOFT SOLUTIONS SERVICES PARTNERS Custom Field Types  SharePoint and WSS include many field types  Text  Choice Fields  Hyperlink or Picture  Publishing HTML  Field Type == Data Type  Create custom field types to satisfy requirements not met by out of the box field types  Field types also provide field rendering facilities  Field controls deliver or capture the content in a Publishing Page  Field controls are tightly coupled with the type of the field

HOME EVIDENCE EXECUTION MICROSOFT SOLUTIONS SERVICES PARTNERS Web Parts Vs Field Types  Both allow you to add content regions to a page layout  Rule of thumb:  Use field controls for content and Web Parts for functionality  Since a field control is bound to a specific field of an item, it offers complete versioning/history  Web Parts do not offer complete versioning/history Field ControlsWeb Parts PersonalizationNoYes StorageContent is stored in a field in page’s underlying list Content is stored with and/or managed by Web Part Suggested UseAtomic content rendering and editing Functionality VersioningComplete historyNo history

HOME EVIDENCE EXECUTION MICROSOFT SOLUTIONS SERVICES PARTNERS Custom Field Control - Components Demo

HOME EVIDENCE EXECUTION MICROSOFT SOLUTIONS SERVICES PARTNERS Custom Field Field Control Rendering Template Rendering Control Field Class SPFieldMultiChoice SPFieldMultiColumn Field Value SPFieldMultiColumnValueSPFieldMultiChoiceValue Field Type Definition fldtypes _.xml { } {....} Demo Development Components

HOME EVIDENCE EXECUTION MICROSOFT SOLUTIONS SERVICES PARTNERS Field Control – Rendering Template & Rendering Control Demo

HOME EVIDENCE EXECUTION MICROSOFT SOLUTIONS SERVICES PARTNERS Field Control – Rendering Template Edit ModeDisplay Mode Rendering Template Demo

HOME EVIDENCE EXECUTION MICROSOFT SOLUTIONS SERVICES PARTNERS Field Control – Rendering Control Edit ModeDisplay Mode  Every rendering control has at least one rendering template associated with it  A RenderingTemplate object is defined as a RenderingTemplate element in an.ascx file  The rendering template is referenced by its ID value in the rendering control object's TemplateName property Demo

HOME EVIDENCE EXECUTION MICROSOFT SOLUTIONS SERVICES PARTNERS Rendering Control – BaseFieldControl Demo Edit ModeDisplay Mode

HOME EVIDENCE EXECUTION MICROSOFT SOLUTIONS SERVICES PARTNERS Rendering Control – CreateChildControls Demo Edit ModeDisplay Mode

HOME EVIDENCE EXECUTION MICROSOFT SOLUTIONS SERVICES PARTNERS Demo InPagePod Field – Rendering Template & Rendering Control

HOME EVIDENCE EXECUTION MICROSOFT SOLUTIONS SERVICES PARTNERS  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 Field Control – Summary Demo

HOME EVIDENCE EXECUTION MICROSOFT SOLUTIONS SERVICES PARTNERS Field Class Demo

HOME EVIDENCE EXECUTION MICROSOFT SOLUTIONS SERVICES PARTNERS Field Class SPFieldBooleanSPFieldChoiceSPFieldCurrencySPFieldLookupSPFieldMultiColumnSPFieldMultiChoiceSPFieldMultiLineTextSPFieldNumberSPFieldRatingScaleSPFieldTextSPFieldUrlSPFieldUser  This is a class whose instances can represent particular fields that are based on your custom field type  This class must inherit from SPField or one of the classes in Windows SharePoint Services that derive from it Demo

HOME EVIDENCE EXECUTION MICROSOFT SOLUTIONS SERVICES PARTNERS Demo InPagePod Field – Field Class

HOME EVIDENCE EXECUTION MICROSOFT SOLUTIONS SERVICES PARTNERS  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 FieldRenderingControl method 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 Field Class – Summary Demo

HOME EVIDENCE EXECUTION MICROSOFT SOLUTIONS SERVICES PARTNERS Field Value Demo

HOME EVIDENCE EXECUTION MICROSOFT SOLUTIONS SERVICES PARTNERS Field Value titleImgUrl;podContent;contentImageUrl String Value Custom Value Class ;#TitleImage;#PodContent;#ContentImage;# Demo

HOME EVIDENCE EXECUTION MICROSOFT SOLUTIONS SERVICES PARTNERS Field Value – Saving Field Values Demo

HOME EVIDENCE EXECUTION MICROSOFT SOLUTIONS SERVICES PARTNERS Demo InPagePod Field – Field Value

HOME EVIDENCE EXECUTION MICROSOFT SOLUTIONS SERVICES PARTNERS  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 - ;# Field Value– Summary Demo

HOME EVIDENCE EXECUTION MICROSOFT SOLUTIONS SERVICES PARTNERS Field Validation Demo

HOME EVIDENCE EXECUTION MICROSOFT SOLUTIONS SERVICES PARTNERS Field Validation Demo Field Validation Rendering Control When Saving Field ValuesOverride Validate Method Field Class Override GetValidatedString Method (before committing to the content database) (before saving the Publishing page)

HOME EVIDENCE EXECUTION MICROSOFT SOLUTIONS SERVICES PARTNERS Validate When Saving Field Values Demo

HOME EVIDENCE EXECUTION MICROSOFT SOLUTIONS SERVICES PARTNERS Overriding Validate Method Demo ;#TitleImage;#PodContent;#ContentImage;#

HOME EVIDENCE EXECUTION MICROSOFT SOLUTIONS SERVICES PARTNERS Overriding GetValidatedString Method Demo ;#TitleImage;#PodContent;#ContentImage;#

HOME EVIDENCE EXECUTION MICROSOFT SOLUTIONS SERVICES PARTNERS Demo InPagePod Field – Field Validation

HOME EVIDENCE EXECUTION MICROSOFT SOLUTIONS SERVICES PARTNERS  Validate the control values before setting the field values in the Field Control class  Set the IsValid to true  Set the ErrorMessage to an appropriate error message  Override the Validate method in the Field Control class  Set the IsValid to true  Set the ErrorMessage to an appropriate error message  Override the GetValidatedString in the Field class  Throw SPFieldValidationException as an error Field Validation – Summary Demo

HOME EVIDENCE EXECUTION MICROSOFT SOLUTIONS SERVICES PARTNERS Field Type Definition Demo

HOME EVIDENCE EXECUTION MICROSOFT SOLUTIONS SERVICES PARTNERS Field Type Definition Demo fldtypes*.xml fldtypes_spconf.xml

HOME EVIDENCE EXECUTION MICROSOFT SOLUTIONS SERVICES PARTNERS Demo InPagePod Field – Field Type Definition

HOME EVIDENCE EXECUTION MICROSOFT SOLUTIONS SERVICES PARTNERS Custom Field Type Deployment Demo

HOME EVIDENCE EXECUTION MICROSOFT SOLUTIONS SERVICES PARTNERS Custom Field – Deployment Demo *.ascx *.cs (.dll) fldtypes*.xml Rendering Template Rendering Control Class Field Control Class Field Class Field Value Class Field Type Definition *.WSP 12\TEMPLATE\CONTROLTEMPLATES\ GAC 12\TEMPLATE\XML\

HOME EVIDENCE EXECUTION MICROSOFT SOLUTIONS SERVICES PARTNERS Session Summary Demo *.WSP SPFieldBooleanSPFieldChoiceSPFieldCurrencySPFieldLookupSPFieldMultiColumnSPFieldMultiChoice

HOME EVIDENCE EXECUTION MICROSOFT SOLUTIONS SERVICES PARTNERS  Web Content Management Resource Center for SharePoint Server   SharePoint Server Developer Center   MSDN: How to Create a Custom Field Control   Chaks’ Blog   Robert Stewart’s Blog  Resources Demo

HOME EVIDENCE EXECUTION MICROSOFT SOLUTIONS SERVICES PARTNERS Thank You