SharePoint of the Day #14

Did you know you can add items to menus and lists in SharePoint by creating a CustomAction element in a feature? Try adding a feature with an element manifest containing this:

<CustomAction Id=”CurrentUsers”
GroupId=”SiteActions”
Sequence=”10″
Location=”Microsoft.SharePoint.SiteSettings”
Rights=”ManageWeb”
Title=”Site Features”
>
<UrlAction Url=”/_layouts/ManageFeatures.aspx”/>
</CustomAction>

This code will add a link on the Site Actions menu to the Site Features page.

You can learn more about CustomActions in USP Journal Volume 1, Issue 1

Post to Twitter Post to Delicious Delicious Post to Digg Digg This Post

Posted under Developer

This post was written by spotd on April 20, 2009

Tags:

Like this tip? Hate it? Vote here

1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading ... Loading ...

What do you think if this tip?

Name (required)

Email (required)

Website

Comments

More Blog Post

Previous Post: SharePoint of the Day #13