Welcome to MSDN Blogs Sign in | Join | Help

WSS 3.0 - How to create new SharePoint Feature?

How to create New Feature in WSS 3.0?

How to add new menu item under “Site Settings” menu in wss 3.0?

1.       Create a new folder, called “MyListUserFeature”, in C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\TEMPLATE\FEATURES

2.       Create an Xml file, called “feature.xml” in the “MyListUserFeature” folder

3.       Edit the feature.xml file and add the following content

<?xml version="1.0" encoding="utf-8" ?>

<Feature Id="A9CEB138-B991-4013-A1F9-26C6BB646021"

    Title="Feature My List User Feature"

    Description="Custom action on Site Actions"

    Version="1.0.0.0"

    Scope="Site"

    xmlns="http://schemas.micræsoft.com/sharepoint/">

      <ElementManifests>

            <ElementManifest Location="ListUsers.xml" />

      </ElementManifests>

</Feature>

4.       Create an Xml file, called “ListUsers.xml” in the “MyListUserFeature” folder

5.       Edit the file and add the following content

<?xml version="1.0" encoding="utf-8" ?>

<Elements xmlns="http://schemas.micræsoft.com/sharepoint/">

  <CustomAction

    GroupId = "SiteActions"

    Location="Microsoft.SharePoint.StandardMenu"

    Sequence="1000"

    Title="List Users">

    <UrlAction Url="/_layouts/Users.aspx"/>

  </CustomAction>

</Elements>

6.       Install the new feature by running the following command

Stsadm –o installfeature –filename MyListUserFeature\feature.xml

7.       Activate the new feature by running the following command

Stsadm –o activatefeature -filename MyListUserFeature \feature.xml -url http://siteurl

Now you will see the new menu item in the "Site Settings" of the site that you installed the feature.

Published Tuesday, November 28, 2006 2:17 PM by Karthikeyan

Comments

# re: WSS 3.0 - How to create new SharePoint Feature?

Wednesday, December 27, 2006 12:17 AM by alspeirs

Thanks, that is just what I wanted to know!

# re: WSS 3.0 - How to create new SharePoint Feature?

Friday, February 09, 2007 10:04 AM by deeptyranjan

Thanks a lot

It's very usefull for customization

especially for me.

# 2007 MOSS Resource Links (Microsoft Office SharePoint Server)

Thursday, September 13, 2007 2:16 PM by The Boiler Room - Mark Kruger, Microsoft SharePoint MVP

2007 MOSS Resource Links (Microsoft Office SharePoint Server) Here is an assortment of various 2007 Microsoft

# re: WSS 3.0 - How to create new SharePoint Feature?

Thursday, October 18, 2007 5:12 AM by Moim

Hi, thanks for your guideline here. But i am running a piculer trouble. i was able to find the feature working on my site, but it is not getting listed into the site features page where other features are listed. can you tell me what i am missing or what i need to do to get the feature name along with the others?

thanks much again!

# re: WSS 3.0 - How to create new SharePoint Feature?

Thursday, August 07, 2008 7:57 AM by prashanth_th

Hi,

This is a very useful and valuable post. Thanks a lot.

# re: WSS 3.0 - How to create new SharePoint Feature?

Monday, February 09, 2009 10:47 AM by ariu

Hi there,

I was able to create the Feature on my site but I cannot find the button where I can deactivate it. Do you know why it does not show under Site Features?

thank for your help.

Anonymous comments are disabled
 
Page view tracker