Sunday, November 30, 2008

Creating custom timer jobs

This article describes how we could create custom time jobs in WSS 3.0


STSDEV: Simple Tools for SharePoint 2007 Development ( is a proof-of-concept utility application which demonstrates how to generate Visual Studio project files and solution files to facilitate the development and deployment of templates and components for the SharePoint 2007 platform including Windows SharePoint Services 3.0 (WSS) and Microsoft Office SharePoint Server 2007 (MOSS). Note that the current version of the stsdev utility only supports creating projects with the C# programming language

Feature activation

We can activate the feature when we create a site. This can be done by creating a feature and putting the feature Id in the onet.xml.
During the site creation process, the feature would be activated and a number of operations could be carried out. E.g. of this feature could be adding list to the site dynamically when I create a site.
The site could be created using one more feature that could be activated through command prompt or in the GUI.

List Schema in MOSS

This post helps you to build a schema.xml in SharePoint 2007.
Use http://mosserver/_vti_bin/owssvr.dll?Cmd=ExportList&List={List GUID} to get the schema of the List.
Save the page source as schema.xml and do the following changes:
1. Delete the Guid identified in the View Name. If there is featureID delete it too.
2. Add WebPartZoneID="Main" to each view node.
3. Create a BaseViewId=0 view (just copy the all items and add the View attributes aseViewID="0" Type="HTML")
4. If your deploying custom forms then amend the Forms nodesformsform type="DisplayForm" url="DispForm.aspx" webpartzoneid="Main"form type="EditForm" url="EditForm.aspx" webpartzoneid="Main"form type="NewForm" url="NewForm.aspx" webpartzoneid="Main"forms
5. Add the List Name attribute to be the same as the List Template Name.