Best practices

SharePoint Development Tools

The following is the list of tools that I happen to use during Sharepoint Development. These tools help the SharePoint developers to do their work efficiently.

Visual Studio Extensions for Windows SharePoint Services 3.0 Tools
 

Tools for developing custom SharePoint applications: Visual Studio project templates for Web Parts, site definitions, and list definitions; and a stand-alone utility [...]


Running Code with Elevated Privileges

During custom development in Sharepoint, sometimes your code must call restricted methods within the Windows SharePoint Services object model even though the request is initiated by a non privileged user. In such cases you must be able to elevate the privilege of your code as it executes on web server.  Meaning, instead of your code [...]


How to log errors to SharePoint Log file

When you work with share point custom code development such as Web parts, Features, Event Handlers, and Workflows etc., you can use the Sharepoint built in logging mechanism to log the errors instead of creating custom logging mechanism.
In SharePoint, log files are located at C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\LOG
To log errors/messages/exceptions to the [...]


MOSS 2007 limitations list for acceptable performance

If you are planning for big Sharepoint (MOSS 2007) Implementations, consider these limitations and guidelines for the best Sharepoint (MOSS 2007) Implementation.
The following table lists the recommended guidelines for site objects.

Site object

Guidelines for acceptable performance

Scope of impact when performance degrades

Site collection

50,000 per content database

Farm

Site collection

150,000 per Web application

Farm

Web site

250,000 per site collection

Site collection

Subsite

2,000 per Web [...]


Accessing Lists through Sharepoint Object model

Is accessing the list taking more time…
Consider the following while accessing the list  through Object model

SPWeb.GetList(string url)
In this case, first it gets the list GUID from the url(database hit), then it loads the Meta data for that specific list.
SPWeb.Lists[“name”]
This method loads the meta-data information of the all lists for the SPWeb object under consideration. and [...]


SharePoint Custom code acceptance checklist

The ability to customize sites by adding custom solutions gives Office SharePoint Server 2007 power and flexibility. However, a poorly designed or implemented executable module that runs in a SharePoint farm can do harm even beyond the scope of the Web application for which it was intended. Poorly implemented custom solutions can introduce security or [...]


Performance Optimization for WCM Sites & Optimize Sharepoint Site for Search Engines

In internet facing scenario performance optimization is a key thing for the successful implementation of any website. Microsoft has provided good articles related to Performance Optimization for the WCM site in SharePoint & also on how to optimize SharePoint for search engines.
Here is the link:
 
How to Optimize a SharePoint Server 2007 Web Content Management Site [...]


Site Content And Structure : Find all the pages created using Page layout

In CMS Dependent Report feature is used to identify all the postings which are created using the Template. In Sharepoint Similar feature is available where you can find all the pages which are created using the page layout. This is also useful when you modify the page layout and you want to test all the [...]