Reading Time: 2 minutes

 

Overview (Overview -REF-MSDN)

Features are a major enhancement to the template framework of Microsoft Office SharePoint Server 2007 (MOSS). Features allow you to test, deploy, and activate custom functionality inside Office SharePoint Server 2007 and provide a way to make functionality available across your server farm. This functionality can be custom workflows, content types, modifications to the user interface, or new templates for lists and document libraries. For example, you can roll out the definition of a custom document library to any number of team sites by packaging it up as a Feature, complete with metadata expressed in the Collaborative Markup Language (CAML) in the schema. You can package the Feature up as a SharePoint solution and provide it to an administrator, where it can be installed and deployed as a unit.

Another benefit of using Features is in the use of site definition (ONET.xml) files. ONET.xml files provide Windows SharePoint Services with information about the navigation, lists, and document libraries that users can create. In the previous version of SharePoint, ONET.xml files have a tendency to get very large. With the advent of Features, the ONET.xml file shrinks because Features can now contain the information that was previously defined in the ONET.xml file.

In this article, you will create a custom Feature.

Exploring the Components of a Feature

Features are typically stored on the SharePoint server at C:Program FilesCommon FilesMicrosoft Sharedweb server extensions12TEMPLATEFEATURES.

Here I created one sample custom feature. Based on create your own custom Features.

Its need three files. (Click here to Download the files)

How to do:

Follow the below steps:

1. Create a Folder Jenkins_SiteFeature in C:Program FilesCommon FilesMicrosoft Sharedweb server extensions12TEMPLATEFEATURES Folder

2. Drop the files Element.xml and Feature.xml

3. Drop the file Jenkins_CustomSiteFeture.aspx in C:Program FilesCommon FilesMicrosoft Sharedweb server extensions12TEMPLATELAYOUTS Folder.

4. Then need to install the feature.
Open the command Prompt
Navigate to —> C:Program FilesCommon FilesMicrosoft Sharedweb server extensions12BIN>
stsadm -o installfeature -name “Jenkins_SiteFeature” -force

5. Open your Site
a. Site Actions
b. Site Settings
c. Modify All Site Settings
d. Under Site Collection Administration –> Click Site Collection features
Activate the “Jenkins Site Features”.

6. Then open your Site and Click Site Actions –> Site Settings –> Modify All Site Settings
–> under Galleries –> u will see the Jenkins Site Features

It will helps (Any Queries Contact jenkins.ns@cognizant.com)

Files Attached – Clicked here to download the files


Tagged: SiteFeature

4 Responses to “Creating a Custom Feature in MOSS 2007”

  1. Kurma, Sreekanth Says:

    good feature…

  2. R, Vijayaraghavan Says:

    This very use full article

  3. S, Thanigaivel Says:

    Good Article

  4. Bhaduri, Shirsendu Says:

    great one for customizing..easy to understand also

Published by NS, Jenkins on 11 Dec 2008 at 06:30 pm