© 2009 Ness Technologies – Proprietary and Confidential Kfir Sasson Understanding Features & Solutions In MOSS 2007.

Slides:



Advertisements
Similar presentations
Organizing List and Documents with Site Columns and Content Types Gayan Peiris Principal Consultant
Advertisements

Site Collection, Sites and Sub-sites
SharePoint Feature and Solution upgrading Bram de Jager | Lead SharePoint Developer | Macaw.
Microsoft Office SharePoint Portal Server 2007 Introduction to InfoPath Forms Services Daryl L. Rudolph.
Master Pages, User Controls, Site Maps, Localization Svetlin Nakov Telerik Corporation
Thomas Palmié Architect Microsoft Schweiz Implementierung eines mehrsprachigen Intranets basierend auf SharePoint 2010.
LH SharePoint SIG - Custom Actions. Custom Actions A custom action represents a Server ribbon, menu, or link customization that a user can see. Custom.
Effectively Using Features and Solutions Neil Iversen Inetium
Randy Williams, MOSS MVP Senior Consultant Synergy Corporate Technologies.
Intermediate Level Course. Text Format The text styles, bold, italics, underlining, superscript and subscript, can be easily added to selected text. Text.
Microsoft Office SharePoint 2007 Technical Enablement Tour Patrick Tisseghem (Managing Partner – U2U)
1 of 6 This document is for informational purposes only. MICROSOFT MAKES NO WARRANTIES, EXPRESS OR IMPLIED, IN THIS DOCUMENT. © 2007 Microsoft Corporation.
St. Louis Day of Dot Net 2011 Building Web Parts for an Office 365 SharePoint Site Becky Bertram Independent SharePoint Consultant SharePoint MVP, MCSD.NET,
Mark Rees Microsoft Consulting Services OFC409 Windows Workflow Foundation (WF) Primer Creating WF programs in Visual Studio Creating workflow templates.
Hands-On Microsoft Windows Server 2003 Administration Chapter 5 Administering File Resources.
Microsoft Office System UK Developers Conference Radisson Edwardian, Heathrow 29 th & 30 th June 2005.
Chapter 1 Getting Started With Dreamweaver. Explore the Dreamweaver Workspace The Dreamweaver workspace is where you can find all the tools to create.
Becky Bertram SharePoint MVP
Customising SharePoint David Gristwood Developer & Platform Group
WikiPlus customizations
Web FOCUS Integration with Microsoft Office SharePoint By: Kelvin Ruiz NASA – Kennedy Space Center.
UX01 A Guided Tour Through SharePoint HTML, CSS, and Master Page Resources Chandima Kulathilake Microsoft MVP (Microsoft Office SharePoint Server)
Working with SharePoint Document Libraries. What are document libraries? Document libraries are collections of files that you can share with team members.
©2011 Quest Software, Inc. All rights reserved. Steve Walch, Senior Product Manager Blog: November, 2011 Partner Training Webcast.
OFC308 Windows SharePoint Services (version 3) Development: Using Feature and Solution Definitions for Constructing Custom SharePoint Sites Todd C. Bleeker,
Update your servers to service pack 2. Ensure that the environment is fully functioning. Migrate to 64 bit servers is necessary. REVIEW UPGRADE BEST PRACTICES.
A GUIDE TO SHAREPOINT 2007 CUSTOMIZATION OPTIONS Heather Solomon, WSS MVP.
SharePoint Development 101: Feature Design By Becky Isserman
WSS 3.0 Architecture and Enhancements Ashvini Shahane Member – Synergetics Research Lab.
Windows SharePoint Services 'v3': Creating And Defining Custom Templates, Sites, Features, And Solutions Mike Ammerlaan OFF308 Program Manager Microsoft.
SHARE POINT 2010 TRINAY TECHNOLOGY SOLUTIONS © Copyright Trinay Technology Solutions, 39 Buckland St, #5321 Manchester, CT
Create with SharePoint 2010 Jen Dodd Sr. Solutions Consultant
Web parts for SharePoint. What’s a web part? Application that can be added to a page with a web part zone. Inhierits from web controls Can be developed.
LATTICE TECHNOLOGY, INC. For Version 10.0 and later XVL Web Master Advanced Tutorial For Version 10.0 and later.
Overview of Previous Lesson(s) Over View  ASP.NET Pages  Modular in nature and divided into the core sections  Page directives  Code Section  Page.
Variations and the MUI in SharePoint 2010 Gary Lapointe, MVP.
Building Search Portals With SP2013 Search. 2 SharePoint 2013 Search  Introduction  Changes in the Architecture  Result Sources  Query Rules/Result.
Basic Developer Knowledge That Every SharePoint Admin Must Have Randy Williams, MVP MOSS Synergy Corporate Technologies
Session 1 SESSION 1 Working with Dreamweaver 8.0.
SharePoint Workflows with Visual Studio Stuart Cox RBA Consulting techpunch.wordpress.com.
Domain 3 Understanding the Adobe Dreamweaver CS5 Interface.
Microsoft SharePoint Server 2010 for the Microsoft ASP.NET Developer Yaroslav Pentsarskyy
Upgrading Projects to Visual Studio 2010 Upgrading Projects to SharePoint 2010 Integrating with SharePoint 2010.
Solutions using Microsoft Content Management Server 2002 Connector for SharePoint Technologies Sue Corke Mark Harrison Microsoft UK.
Michael Hofer Senior Consultant Microsoft Corporation.
WikiPlus Configurations Configure WikiPlus elements to your needs.
Your Digital Technology Briefcase My information…when and where I need it.
Connect with life Vedant Kulshreshtha Technology Solutions Professional – SharePoint | Microsoft India
1 © Xchanging 2010 no part of this document may be circulated, quoted or reproduced without prior written approval of Xchanging. MOSS Training – UI customization.
Microsoft ® Official Course Developing a Publishing Site for Web Content Microsoft SharePoint 2013 SharePoint Practice.
Advanced Feature Development Neil Iversen Inetium
Copyright © 2006 Pilothouse Consulting Inc. All rights reserved. Site Definitions and Features Overview Review of SharePoint 2003 site definitions What’s.
Adxstudio Portals Training
Microsoft ® Official Course Designing and Managing Features and Solutions Microsoft SharePoint 2013 SharePoint Practice.
Reduce, Reuse, Recycle. Housekeeping… Download EventBoard Mobile and remember to fill out session evaluations… Phasers set to stun, mobile devices set.
Yaroslav Pentsarskyy Involved in SharePoint since 2003 SharePoint MVP (2009- Present) Blog: sharemuch.com.
NET Development on Microsoft SharePoint Technology Part 4: Templates, Features, and Solution Deployment Mick Badran Breeze Training Consulting Trainer.
Windows SharePoint Services Development Part 1: Paul Appleby Application Architect Microsoft Limited.
Windows SharePoint Services v3.0 Martin Parry Developer & Platform Group Microsoft Limited
The 2007 Microsoft Office System Servers Enterprise Content Management, Workflow and Forms Martin Parry Developer and Platform Group, Microsoft Ltd
Software services delivering SharePoint, Mobile, and Business Intelligence solutions Understanding and implementing the remote provision pattern in SharePoint.
The Microsoft SharePoint Server Feature and Solution Framework An Overview Michael Mukalian – Technology Manager
Developing GIS WebParts in SharePoint
CARA 3.10 Major New Features
About SharePoint Server 2007 My Sites
Collaboration and Storage with WSS v3
Microsoft Dynamics.
Visual Studio 2010 SharePoint Development Tools Overview
St. Louis Day of Dot Net 2011 Building Web Parts for an Office 365 SharePoint Site Becky Bertram Independent SharePoint Consultant SharePoint MVP, MCSD.NET,
MS Confidential : SharePoint 2010 Developer Workshop (Beta1)
Presentation transcript:

© 2009 Ness Technologies – Proprietary and Confidential Kfir Sasson Understanding Features & Solutions In MOSS 2007

2 Agenda Features Implementation Sharepoint Solutions Why Features?

Features - Intro Do you really have only 1 environment? What is the wrong way?? Backup Restore Maybe Making the necessary Customization on every environment? Copy recourses & assemblies manually or by a script Reusability of developed component – hard work for the site designers

Features Reduce Complexity No need to copy code Reduce versioning and inconsistency issues Easier to activate or deactivate functionality in deployment Control site behavior by toggling a Feature on or off in the UI

Features - Capabilities Scoping Installing or uninstalling Features within a deployment Activating or deactivating Features at a given scope Property bag for storing data required by a Feature

Features - Scope Site Settings Links Site Web Part Definitions Workflow Definitions Site Content Types Layout Files List Instances List Definition + Forms + Views List Instances List Item Events Item Custom Actions Web Admin Custom Actions Layout Files Farm Elements Web Application Elements Site Collection Elements Web Elements Item Custom Actions Site Settings Links Admin Custom Actions

Features - Implementation The Feature subfolder includes a Feature.xml file Install and activate the feature using command line or API A Feature can be hidden Features can have dependencies Use EventReceiver (SPFeatureReceiver) to trap feature events Validate against wss.xsd schema

Features – Feature.xml file xml with a defined schema Contains Elements ► used to define a Feature ► Used to specify the location of assemblies, files, dependencies, or properties that support the Feature for example, a "My Favorite Items" ► A custom list that stores, per user, a list of favorite items, which is created as a single hidden list per workspace when the Feature is enabled. ► A custom menu item that is attached to all lists, called "Add to Favorites," which adds an item to the Favorites list. ► A Web Part that implements usage and link tracking to display the user's top 10 favorites at the top

Features – Feature.xml file

Features – Install and activate All features must be copied in to the features folder All features must be installed on the farm A feature has effect on its scope only after activation Use Command line : stsadm.exe ‘ Install the feature stsadm -o installfeature -filename BasicCollectFeedback\feature.xml –force ‘ Activate the feature stsadm -o activatefeature -filename BasicCollectFeedback\feature.xml -url %URL% ‘ Deactivate the feature stsadm -o deactivatefeature -filename BasicCollectFeedback\feature.xml -url %URL% ‘ Uninstall the feature stsadm -o uninstallfeature -filename BasicCollectFeedback\feature.xml

Demo 1 – Create and Install a Feature 11

Features – Element Types ElementScopeDescription Content TypeSiteschema definition you can apply to multiple list definitions. Content Type Binding Siteenables the user to provision a content type on a list. ControlAllA delegate control contains a registration for a well- known control installed on a Web page. Custom ActionAll Content type links for the content type settings page Drop-down menu actions for the drop-down menu that appears for an item Form toolbar buttons for New, Edit, or Display form toolbars. Site Settings link for the Site Settings page. Custom Action Group AllDefines a group of custom actions. Document Converter WebApplicationContains the definition of a document converter.

Features – Element Types ElementScopeDescription Feature/Site Template Association Farm, WebApplication, Site Binds a feature to a site definition or template so that created sites are provisioned with the feature. FieldSiteContains a field definition that can be reused among multiple lists. Hide Custom Action AllHides a custom action that has been added through another custom action. List InstanceSite, WebProvisions a SharePoint site with a specific list of data. List TemplateSite, WebContains a list definition or template, which defines a list that can be provisioned in a SharePoint site. ModuleSite, WebContains a set of files with which to provision sites. ReceiverWebContains an item event receiver registration. WorkflowSiteContains the definition for a workflow in a list.

Features – Field Element <Field ID="{8c06beca f7-91c7-6da68bc07b69}" Name="Created" SourceID=" StaticName="Created" Group="_Hidden" ReadOnly="TRUE" Type="DateTime" DisplayName="Created“>

Features – List Instance Element Action Description Title True High Up

Features – List Template Element

Features – Content Type Element Defines a content type that will be available on the site Control inheritance using the content type ID ► Parent content type ID + two hexadecimal values ► Parent content type ID + "00" + hexadecimal GUID Connect existing fields to the content type Custom Forms add\update\display item.

Features – Content type Element DocumentLibraryForm

Features – Content Type Binding Element <ContentTypeBinding ContentTypeId="0x010100C5A8DB52D9D0A14D9B2FDCC96666E9F2" ListUrl="_catalogs/masterpage" />

Features – Module Element specify files with which to provision SharePoint sites. Important attributes: ► Name ► List – list type number ► Url – the url of the list File Element ► URL – the name of the file ► Path – the path to the file AllUsersWebPart – define webparts in a page

Features – Module Element <![CDATA[ EditorPayments ]]>

Features – Event Regitration SimpleEvent SimpleEventHandler, Version= , Culture=neutral, PublicKeyToken=10b23036c9b36d6d MS.Samples.SimpleEventHandler

Features – Delegate Control Declare candidate controls for a particular functionality Provides a mechanism for choosing a single functionality provider Can replace the content of any Sharepoint:DelegateControl Union between server farm, Web application, site collection, and Web site levels The control that has the lowest sequence number is added to the control tree by means of the DelegateControl

Features – Delegate control Delegate declaration: Override using feature:

Features – Custom Action A custom action represent ► A link ► Toolbar button ► Menu item ► any control that can be added to a toolbar or menu that a user sees Add a control to toolbars

Features – Custom Action <CustomAction Id="Test1bbb" Location="EditControlBlock" Title="Test2" RegistrationType="ContentType" RegistrationId = "0x01" > Adds menu item to all the items in all the lists that use the Item content type Override using feature:

Features – Useful Utilities MOSS Feature Generator ► Create site columns, list templates, content types features ► Drag & Drop ► Features created in a few minutes ► Download from MOSS Publishing Feature Generator ► Creates Module features with selected layouts and master pages ► Very easy to use ► Download from

Demo 2 – Develop Features 28

Solutions - Intro Now that we have features what is the best way to deploy Batch file Develop an installer Sharepoint Solutions

Solutions Bundle all of the components for extending WSS A solution file is a CAB-based format with a.wsp extension A unified infrastructure for deploying solutions Integrated deployment ► Easily install files on the front-end Web servers in a server farm Solution framework allows you to do the following ► Deploy new solutions and upgrade existing solutions across the farm ► Synchronize a front-end Web server so that its state is consistent with The state of other servers in the farm

Solutions - Creating Contains the following components ► Site definitions ► Feature definitions and their element definitions and files ► Web Part files (*.webpart, *.dwp) ► Template files and root files, which can include the following: ► _layouts files ► Resources (*.resx) ► Resource files (for example, *.doc or *.xls) ► Assemblies, which can include the following: ► Safe control entries ► Resources

Solutions - Creating Solution files have a hierarchical structure ► a manifest file is at the root ► All the content located in subdirectories Define the files you wish to deploy in solution Manifest.xml file Defines the list of features, site definitions, resource files, web part files and assemblies to process

Solutions - Creating Manifest.xml

Solutions - Creating DDF File Declaration file for the cab creator utility Use the makecab.exe utility The format of a.ddf file is basically in the same style as the.inf file declare a standard header and then enumerate All files must be included MakeCab /F soultion.ddf

Solutions - Creating ;*** MakeCAB Directive file ;.OPTION EXPLICIT ; Generate errors.Set CabinetNameTemplate=ShokenEncyclopedia.wsp.set DiskDirectoryTemplate=CDROM ; All cabinets go in a single directory.Set CompressionType=MSZIP ;** All files are compressed in cabinet files.Set UniqueFiles="OFF".Set Cabinet=on.Set DiskDirectory1=SHOKEN ; ; ** CAB Root manifest.xml ; ; ** ShokenMainEncyclopediaPortal Feature.Set DestinationDir=ShokenMainEncyclopediaPortal..\ShokenFeatures\ShokenMainEncyclopediaPortal\Feature.xml.Set DestinationDir=ShokenMainEncyclopediaPortal\Lists ; ; ** WEB CONFIG.Set DestinationDir=CONFIG webconfig.shoken.xml ; ; ** Resources.Set DestinationDir=Resources..\Resources\shokencore.resx ;*** End

Solutions - Deploy Use command line stsadm Stsadm –o addsolution –filename “wsp file” Stsadm –o deploysolution –name %packagename% -local – allowGacDeployment –url %TargetUrl% Stsadm –o retractsolution –name %packagename% -local –url %TargetUrl% Stsadm –o deletesolution –filename “%pakagename%”

Solutions – Deploy Deploy and retract in the admin site

Solutions – Useful Utilities WSPBuider Automatically Creates the manifest file Creating the wsp file for deployment Very easy to use Download from

Solutions – Useful Utilities Solution Installer Add solution to the SharePoint solution store. Deploy solution on one or more web applications. Activate feature on one or more site collections Upgrade solution. Retract and remove solution. Download from

Demo 3 – Creating and Deploying Solutions 40

Summary Features are the proper way to add functionality to Sharepoint Site admins can control the functionally of the site Deployment becomes an easy job Useful tools make the develop much simpler

Thank You! Kfir Sasson Ness Technologies 42