Customizing Central Administration using Object Model SharePoint 2010

SharePoint Foundation includes a revamped administrative object model that provides access to functionality that was hidden in previous versions. The new object model is designed so that you can readily change administrative settings throughout a deployment. You can now use the Microsoft.SharePoint.Administration namespace to manage the administrative property settings and for creation of objects for custom properties.

The Microsoft.SharePoint.Administration namespace in SharePoint Foundation introduces object persistence, through which classes that derive from the base SPPersistedObject class are persisted to the SharePoint Foundation database.To create a persisted object, you create a class that inherits from SPPersistedObject, or from a class in the Microsoft.SharePoint.Administration namespace that derives from SPPersistedObject. Your class can define an object model for storing custom property settings in the SharePoint Foundation database.

See all properties @ here

Creating Custom aspx pages in Central Administration:

The SharePoint Foundation Central Administration Web site uses a virtual directory named /_admin that is similar to the /_layouts virtual directory of content sites. The administrative virtual directory is mapped physically to the %ProgramFiles%\Common Files\Microsoft Shared\web server extensions\14\\Template\Admin directory, which is where you can place custom administration pages. Pages that are located in this directory are associated with the configuration database and not with the content database.To ensure consistency across all administration pages, SharePoint Foundation provides a master page (admin.master) that defines page layout.

The following list describes key placeholders that are defined in the SharePoint Foundation master page file:

  • PlaceHolderPageTitle   The title that is displayed in the top browser bar.
  • PlaceHolderPageTitleInTitleArea   The title that is displayed in large black text on the rendered page.
  • PlaceHolderAdditionalPageHead   Additional items to be placed within the <HEAD> tag of the page, which provides an ideal location for client-side script on the page.
  • PlaceHolderPageDescription   The page description.
  • PlaceHolderMain   The location where most of the derived page content is placed.

See example @ Programmatically restrict file types in sharepoint 2010on how to restrict file types in central admin programmatically.

Administration ASPX pages are global and rely on the localization infrastructure that is built into ASP.NET.

Related Posts