Home > MOSS 2007, SharePoint, WSS 3.0 > WSS 3.0 Site Actions Menu Item

WSS 3.0 Site Actions Menu Item

Using a feature to add new menu item in Site Actions.

Create a WSP project & add a feature to the solution. Edit feature file as below

<?xml version="1.0" encoding="utf-8" ?>
<Feature Id="B1FB6ECC-0039-4E08-A4B4-80B5B3C8DCE3"
   Title="Sample Feature"
   Description="New menu item on Site Actions"
   Version="1.0.0.0"
   Scope="Site"
   xmlns="http://schemas.micræsoft.com/sharepoint/">
      <ElementManifests>
         <ElementManifest Location="SampleFile.xml" />
      </ElementManifests>
</Feature>

Create an Xml file, called “SampleFile.xml” on the feature folder
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="Your Title">
       <UrlAction Url="/_layouts/YourPage.aspx"/>
   </CustomAction>
</Elements>

Add & Deploy WSP

stsadm –o addsolution –filename SampleSolution.wsp
stsadm -o deploysolution -name SampelSolution 
   -url http://siteurl

Activate the new feature by running the following command

stsadm –o activatefeature -filename SampleFeature \feature.xml -url http://siteurl
Advertisements
Categories: MOSS 2007, SharePoint, WSS 3.0
  1. No comments yet.
  1. No trackbacks yet.

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 )

Twitter picture

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

Facebook photo

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

Google+ photo

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

Connecting to %s

%d bloggers like this: