Defining the RequestSiteAction menu item
The request form will need to be easily accessible to all of the site users. One good way to do that is to add it to one of the standard action menus such as the SiteActions
or PersonalActions
menu. It will direct the user to the request form wherever they are in the system allowing them to submit the request.
To define a custom action:
1. Click on Add | New Item to the Visual Studio project.
2. Under the SharePoint | 2010 category, select the Empty Element type and provide a name such as
RequestSiteAction
.3. Edit the
Elements.xml
file with the following content:<CustomAction Description="Submit a site collection request."GroupId="SiteActions" Id="RequestSiteAction" Location= "Microsoft.SharePoint.StandardMenu" RequireSiteAdministrator="false" Sequence="1001" Title="Request Site Collection"> <UrlAction Url="_layouts/SPBlueprintsSiteCreation/RequestSite.aspx" /> </CustomAction>
4. When deployed the custom action will be displayed in...