Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

I am trying to add a custom Menu item under "Site Collections" in central admin. Following is my elements.xml file.

<?xml version="1.0" encoding="utf-8"?>
<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
    <CustomAction
    Id="CheckAllaboutmoss"
    Location="Micorosoft.SharePoint.Administration.Applications"
    Title="Check Allaboutmoss.com availability"
    Sequence="15"
    RequiredAdmin="Delegated"
    Description="Create a new top-level web site, by host header" 
    GroupId="SiteCollections">
        <UrlAction Url="/_layouts/HelloWorld/Hello.aspx"/>
    </CustomAction>
</Elements>

I deploy the solution and I dont see the new menu item. What could be the reason? I tried adding a menu item to Site Actions menu and it works.

share|improve this question
add comment

3 Answers

up vote 3 down vote accepted

I realize that Location and GroupID attributes mentioned in SDk are not correct: http://msdn.microsoft.com/en-us/library/bb802730.aspx

The values you specified are correct.

I was able to display a link with following XML, which is pretty similar to yours:

<?xml version="1.0" encoding="utf-8"?>
<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
  <CustomAction  GroupId="SiteCollections" Id="CheckAllaboutmoss" Sequence="100" Location="Microsoft.SharePoint.Administration.Applications" Title="Check Availability" RequiredAdmin="Delegated" >
    <UrlAction Url="/_admin/createsite.aspx"/>
  </CustomAction>
</Elements>

Please make sure following: 1. You can use Scope = Web or higher (Web makes sense) 2. Make sure you have AutoActivateInCentralAdmin="TRUE" in the FEATURE element of the feature.

share|improve this answer
    
Thanks for the reply. Still I don't see it. I used the values given here : bloggingabout.net/blogs/arjen/archive/2010/02/04/… –  Shoban Nov 1 '10 at 14:56
    
I think you should be fine with my updated answer..Please review my answer again –  Ashish Patel Nov 1 '10 at 17:30
    
Thanks Ashish. Will check and let you know. –  Shoban Nov 2 '10 at 8:39
add comment

In the associated feature.xml file, make sure to reference the elements file as follows:

<ElementManifest Location="elements.xml" />

Once without thinking, I used the "ElementFile" tag instead and for the life of me I couldn't figure out why the custom action wasn't showing up. I'm not going to own up to how much time I spent trying to resolve the issue.

share|improve this answer
add comment

Your location is not good. You wrote Location="Micorosoft.SharePoint.Administration.Applications"

instead of

Location="Microsoft.SharePoint.Administration.Applications"

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.