How to make two instances of your custom feature?


Hi All,

Today I will discuss how to make two instances of your custom feature in your site definition file

NOTE: This entry is for SharePoint 2007…. Moreover I am assuming that you have some prior knowledge of how to create your custom Site Definitions…

  1. Make your custom Feature using XML or Solution generator.
  2. Solution generator will generate the schema and all the aspx pages that are required by that feature.
  3. For Solution generator to work you need to install Visual Studio 2005 and at least Windows SharePoint Services 3.0
  4. Go to Element Manifest from the folder… 12TemplatesFeaturesCustomFeatureListTemplates
  5. Edit the Element Manifest.XML file in any XML Editor (in my case I prefer VS 2005)
  6. Make a new entry by copying the entry which is already present there and changing its type.
  7. Save the file and you are done
  8. Re-install the feature by using command line command stsadm –o installfeature –name FeatureName –force
  9. Restart IIS
  10. Create a new site then go to Manage Site Content appearing on the left side above Quick Launch and then click create from the top there you see two instances of same feature.
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: