Share Point 2010 Notes
Share Point 2010 Notes
A) Manage SPSite and SPWeb programmatically by using Visual Studio 2010 SPSite - Represents a collection of sites in a Web application, including a top-level Web site and all its subsites. Each SPSite object, or site collection, is represented within an SPSiteCollection object that consists of the collection of all site collections in the Web application. SPContext - Represents the context of an HTTP request in Microsoft SharePoint Foundation SPSite.Features - Gets the collection of SPFeature objects that are associated with the site collection. SPFeature represents the state of a feature at its corresponding scope SPFeatureCollection.Add() - Activates a Feature by using the Feature definition with the specified ID to create a new SPFeature object and then add it to the collection. SPSite.OpenWeb() SPWeb - Represents a SharePoint Foundation website. SPWeb.Features SPWeb.Properties SPWeb.Webs SPWebCollection.Add() Disposing Objects SPFile - Represents a file in a SharePoint Web site that can be a Web Parts page, an item in a document library, or a file in a folder. Creating Sub Web Referencing SPFile Manipulate Property Bag When to Call Update SharePoint Foundation typically does not save modifications of object properties to the database until you call the Update method on the specified object Feature Activation/Deactivation B) Implement a dialog by using the Dialog Framework Provided by JavaScript Client Model. C) Creating custom ribbon object D) Customize navigation programmatically Customize Top Link Bar - http://msdn.microsoft.com/enus/library/ie/gg252669.aspx Website Navigation - http://msdn.microsoft.com/enus/library/ms471078.aspx
E) Create and apply branding to SharePoint site CSSLink - Inserts a CSS LINK element into the resulting HTML page and applies an external style sheet(s) defined by CssRegistration ScriptLink - Provides properties and methods for registering resources, such as scripts, on a page so that they can be requested when the page is rendered. SharePoint Page Layout Model - page layout is template that is used with Master Page to control look, feel and content of page. Each page layout has associated Content Type that determines what content can be stored on pages based on that page layout. Each Content Type contains columns that define all content that appears on the page (with metadata). http://msdn.microsoft.com/en-us/library/ie/ms544928.aspx SharePoint Page - Master Page (contain controls shared across multiple page layouts, like navigation, search etc.) & Page Layout (contain field controls and Web Parts) SPWeb.ThemedCssFolderUrl - Gets or sets the URL to the folder that contains the cascading style sheets (CSS) file that is used in the theme for the website. SPWeb.MasterUrl - Gets or sets the URL of the master page that is used for the website. SPWeb.AlternateCssUrl - Gets or sets the URL for an alternate cascading style sheet (CSS) to use in the website
A delegate control defines a region in an aspx page that allows the content to be replaced with our custom content. This custom content is created via a SharePoint feature, and when deployed and activated, replaces the standard content at runtime. http://blog.concurrency.com/sharepoint/delegate-controls-in-sharepoint2010/
store all content of sharepoint). Coding style - Sharepoint provides highly structured server-side object model that can be drilled further down in a hierarchy to obtain objects and members. SPWeb is one of the entry point developer can use to access and modify application programmatically The purpose of Client Object model is to access SharePoint data from systems where the SharePoint is not installed like web services. Client vs Server Model Server object model is used to access data only SharePoint installed systems. If I want to access data from production environment and I'm not having access to that machine, in this scenario I will use Client object model or web services. Client object model is similar to Server object model with few limitations, we can't access WebApplication and Farm objects, we can write our own web service or WCF or REST services to work on our own requirements which we can't accomplish with OOB Client object model. Document Library features - versioning, check-in & check-out, workflow SharePoint Building Blocks - http://msdn.microsoft.com/enus/library/ee534971.aspx Workflow overview - Workflows in SharePoint Server 2010 enable enterprises to reduce the amount of unnecessary interactions between people as they perform business processes. For example, to reach a decision, groups typically follow a series of steps. The steps can be a formal, standard operating procedure, or an informal implicitly understood way to operate. Collectively, the steps represent a business process. The number of human interactions that occur in business processes can inhibit speed and the quality of decisions. Software that simplifies and manages this "human workflow" enables the automation of interactions among groups who participate in the process. This automation results in more speed, overall effectiveness of the interactions, and often a reduction in errors. You can model business processes by using flow charts, such as those created using Microsoft Visio 2010 and can represent business processes by using workflow terminology. You can automate business processes, such as document approval, by associating a workflow with data in SharePoint Server 2010. For example, you can create a workflow to route a document for review, track an issue through its various stages of resolution, or guide a contract through an approval process. SharePoint 2010 Technical Diagrams - http://technet.microsoft.com/enau/library/cc263199.aspx Workflow basics - design workflow in Visio, Publish and use in SharePoint, improve with SharePoint Designer Create Site Definition - http://toddbaginski.com/blog/how-to-create-acustom-site-definition-in-sharepoint-2010.aspx/