Activate Feature for Specific List [Special Case]
Apr 22, 2009

Normally, when one wants to activate a particular feature to specific List in WSS then s/he will have to create a specific list by feature itself and then would have to register the feature to that List by Registration ID.


But Recently, I had a special case while developing our in-house Module MOM. In that, I had already defined my custom List through the Site Settings–> Site Libraries and Lists –> Custom List. But then there was a need for a feature which was only to be applied to this list. The feature was to add an Item [Email Again] to the Edit Control Block of that List. So, To solve this problem we followed steps below:

  1. Created a custom content Type for the Site with no columns.
  2. Created a Feature for the Edit Control Block Item.
  3. Activated the Feature on the custom content type created earlier.
  4. Now, From the Web Front End, In the List Settings, allowed the management of Content Type for that specific List.
  5. Then, Added custom content Type to the Specific List and made it the default content type and removed the other content type [Item] which was there by default.
  6. Customized this content type for this specific List by adding the columns which were defined for the specific List.
  7. Now, User can only create an item in that specific List with the new custom content type and the feature is already activated.

Leave a Reply

Your email address will not be published. Required fields are marked *


Related Posts

Changing the language of an existing SharePoint site

Recently, I had a problem with an existing SharePoint site. The problem was…

Dec 26, 2008

Designer workflow failed on start when item is added

I recently got stuck with one of the strange trouble with a developer….

Jun 16, 2010

How to add master page with styles and images in site definition

There is often a requirement to add customized master page (with images and…

May 16, 2009

Copyright © Prakash Software Solutions Pvt. Ltd. All Rights Reserved.