Geeks With Blogs
Reidar Husmo SharePoint from the trenches

A quick note - possibly "note to self" - about how you can add administration pages to central administration ("CA").

  • Start with an empty SharePoint project.
  • Add a mapped folder - to Template/admin.
  • Add an application page to this folder. This is a three step process; add the page, move it from the layouts folder (where Visual Studio decided that you really wanted it), and rename the namespace.

Next you'll want to add this page to CA. Do this by adding a custom action group and a custom action. Cksdev supports both, and you'll find better information about this elsewhere. I wanted my page to appear under "General application settings" so for my action group I chose "Location="Microsoft.SharePoint.Administration.GeneralApplicationSettings"". The UrlAction should point to your admin page.

  <CustomAction Description="Specify the settings for the Contoso module at web application level"
                Title="Web application settings"
                GroupId="Contoso.Administration.Settings"
                Id="Contoso.RequestModule.WebApp.Settings"
                Location="Microsoft.SharePoint.Administration.GeneralApplicationSettings"
                RequireSiteAdministrator="true"
                Sequence="1000"
                 >
    <UrlAction Url="_admin/Contoso.Administration/CollaborationWebAppSettings.aspx" />
  </CustomAction>

The empty page is probably not what we want.

Break open one of the existing admin pages under C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\TEMPLATE\ADMIN to get an idea of how you should do this.

You'll need a <table> inside the body placeholder, you may want a WebApplicationSelector and a ButtonSection, and you will certainly need an InputFormSection - mostly to give it the same look and feel as the builtin CA pages.

 

Hope this helps - even if it only helps a future me. :-)

Posted on Monday, February 13, 2012 2:41 AM SharePoint 2010 | Back to top


Comments on this post: SharePoint administration pages

# re: SharePoint administration pages
Requesting Gravatar...
Or you could just install the CKS:Dev addon, which has an Central Administration Page template, then do "Add -> New Item -> Central Administration Page" :)
http://cksdev.codeplex.com/
Left by Kjetil Gullen on Feb 15, 2012 6:58 AM

# re: SharePoint administration pages
Requesting Gravatar...
?! Ah. Missed it; that option is only available from project level. If you try to add a CA page from under the "admin" folder it is not visible.
Thanks for the heads up. :-)
Left by Reidar on Feb 15, 2012 7:40 AM

Your comment:
 (will show your gravatar)


Copyright © Norgean | Powered by: GeeksWithBlogs.net