search blog
most popular
MCP MCTS MCT MVP

Zimmergren MOSS 2007 Tip #4: Extending the "Site Actions" menu with a custom feature 

In this little tip I will show you how you can customize the "Site Actions" menu by creating a Feature to manipulate the menu and deploy it to your SharePoint site.

This post, as the previous in the series is just an overview of what can be done and will not be discussed in detail how things are done since it's just a little tip. If you'd like to full post on how to create features or extend the menus, please leave me a comment.

The first thing I usually do is to launch an empty VS 2005 project and add a file called "Feature.xml" and a file called "Elements.xml"  to the project, and set the files' Schemas-property to "C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\TEMPLATE\XML\wss.xsd" in order to get the Visual Studio 2005 IntelliSense to work properly.

In this screenshot you'll see my simple Feature.xml file:
zimmergrentipfour
Note: the GUID is simply generated by going to Tools -> Create GUID, then implement it without the { and }. The file is also referencing a file called Elements.xml that I created, see next screenshot.

This is the Elements.xml file:
zimmergrentipfour (2)

Now that those two simple files are created, all I need to do is create a new folder in "C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\TEMPLATE\FEATURES\" to host my feature, then deploy to my server.
See screenshot:
zimmergrentipfour (3)

Now we will deploy the feature by using the cmd-line tool STSADM.EXE, as you can see in the following screenshot:
zimmergrentipfour (4)
Note: Don't forget to reset IIS in order for your feature to become availible

This is the result:
zimmergrentipfour (5)

 
Posted on 10-Apr-07 by Zimmergren
15 Comments  |  Trackback Url  |  Link to this post | Bookmark this post with:        
Tags:
 

Links to this post (Trackbacks/Pingbacks)

Fioricet plain pill.

Trackback from Fioricet. on 10 Mar 2010 11:32

Fioricet.

Trackback from Fioricet. on 10 Mar 2010 11:46

Comments

Monday, 7 Sep 2009 05:02 by Gil Lederman MD
Off topic - need help with email settings How do I change Gmails SMTP settings? Dr Gil Lederman Gil Lederman Gil Lederman MD

Wednesday, 10 Mar 2010 10:32 by Karsten Mottlau
Great and thanks! Could you elaborate on security trimming or audiences on custom site actions items? I.e, I want only a certain group of superusers to see this new item in the menu. Or, they can only see the item if they have access to the destination page. Cheers

Name:
URL:
Email:
Comments: