Microsoft Knowledge Base Email Alertz

KBAlertz.com: How to customize application pages in the Layouts folder in SharePoint Server 2007 and in Windows SharePoint Services 3.0

Receive Microsoft Knowledge Base articles by E-Mail?

Every night we scan the Microsoft Knowledge Base. If technologies you're interested in are updated, we'll send you an e-mail. You only get one e-mail a day, and only when new articles are added.

Click here to create a
FREE account
Already have an account?
[Click here to Login]

Search KbAlertz

Advanced Search

Webmasters
Put kbAlertz on your website.
[ Click Here for more! ]





ASP.NET 3.5 Web Hosting with Windows 2008 and SQL 2008: Click Here!
Discount ASP.NET Hosting
ASP.NET 2.0 and 3.5
Windows2008 and SQL2008
US and UK Hosting
KBAlertz referrals get
** SIX MONTHS FREE **


Community Site



We Send hundreds of thousands of emails using ASP.NET Email


ASP.NET 3.5 Web Hosting with Windows 2008 and SQL 2008: Click Here!
Discount ASP.NET Hosting
ASP.NET 2.0 and 3.5
Windows2008 and SQL2008
US and UK Hosting
KBAlertz referrals get
** SIX MONTHS FREE **




Mentioned In








Microsoft Knowledge Base Article

This article contents is Microsoft Copyrighted material.
©2005-©2007 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks




Article ID: 944105 - Last Review: October 30, 2007 - Revision: 3.0

How to customize application pages in the Layouts folder in SharePoint Server 2007 and in Windows SharePoint Services 3.0

On This Page

INTRODUCTION

This article describes two methods to customize the appearance and the behavior of your site collections in Microsoft Office SharePoint Server 2007 and in Microsoft Windows SharePoint Services 3.0.

MORE INFORMATION

Modifying the files that are installed by SharePoint is not supported. However, there are some scenarios in which you may have to modify these files to achieve consistent branding or other customizations. When you modify these files, you must consider that they may be replaced by future updates and service packs. Additionally, there may be complications when you upgrade to later versions of the product. Keep backup copies of all customized files in case they are overwritten by an update. Product support will provide commercially reasonable support for help with modifications but will be unable to provide product changes or hotfixes that result from modifying the files that are installed by SharePoint.

To customize the appearance and the behavior of your site collections, use one of the following methods.

Method 1: Customize the files in the Layouts folder (recommended)

  1. Create a Layouts_Backup folder to contain a backup of the originally installed files and folders. For example, create a Layouts_Backup folder in the following location:
    C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\12\Template\Layouts\Layouts_Backup
  2. Copy the originally installed files and folders from the Layouts folder to the Layouts_Backup folder that you created in step 1. For example, copy the originally installed files and folders from the following folder to the Layouts_Backup folder:
    C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\12\Template\Layouts
  3. In the Layouts folder, customize the .aspx files and the Application.Master file as needed.

Method 2: Create a custom Layouts folder

Note This method will change the layouts directory for any site collection within the Web application that is being modified. To apply custom layouts changes to an individual site collection, the site collection should reside in its own Web application.
  1. Create a custom LayoutsSiteCollection folder to contain a copy of the originally installed files and folders. For example, create a LayoutsSiteCollection folder in the following location:
    C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\12\Template\Layouts\LayoutsSiteCollection
    Note The SiteCollection placeholder is the name of a site collection.
  2. Copy the originally installed files and folders from the Layouts folder to the LayoutsSiteCollection folder that you created in step 1. For example, copy the originally installed files and folders from the following folder to the LayoutsSiteCollection folder:
    C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\12\Template\Layouts
  3. Start Internet Information Services (IIS) Manager. To do this, click Start, point to All Programs, point to Administrative Tools, and then click Internet Information Services (IIS) Manager.
  4. In IIS Manager, follow these steps:
    1. Expand the Web site that is hosting the site collection.
    2. Right-click _layouts, and then click Properties.
    3. Click the Virtual Directory tab.
    4. Click Browse, change the path from the Layouts folder to the LayoutsSiteCollection folder, and then click OK two times.
  5. In the LayoutsSiteCollection folder, customize the .aspx files and the Application.Master file as needed.
  6. Repeat these steps for each site collection that you have to customize.

Advantage of Method 2

  • This method enables the customization of application pages for individual site collections.

Limitations of Method 2

  • If a public update, a hotfix package, or a service pack is installed that contains updates to the files in the Layouts folder, the update is not applied to your custom Layouts folder.
  • This method may cause excessive manageability and maintenance issues.
  • Any hard-coded functionality in SharePoint Server 2007 or Windows SharePoint Services 3.0 that references the Layouts folder instead of the _layouts virtual directory may not function as expected.

APPLIES TO
  • Microsoft Office SharePoint Server 2007
  • Microsoft Windows SharePoint Services 3.0
Keywords: 
kbhowto kbpubtypekc kbexpertiseinter KB944105
       

Community Feedback System

Very often, it takes hours to solve a problem. Very often, you've looked high and low, and have tried a lot of solutions. When you finally found it, chances are, it was because someone else helped you. Here's your chance to give back. Use our community feedback tool to let others know what worked for you and what didn't.

Please also understand that the community feedback system is not warranted to be correct, it's simply a system that we've built to let people try and help each other. If something in a feedback response doesn't make sense to you, or you're not comfortable making changes that the feedback talks about (like registry edits), please consult a professional.

Thank you for using kbAlertz.com Feedback System.

-- Scott Cate

Be the first to leave feedback, to help others about this knowledge base article.

(Optional) Name

(Optional) Public URL Or Email

Comments
No HTML -- Text Only Please