It is recommended that you create a new site definition and leave the original site definition intact when you want to modify or customize the default Microsoft® Office Project Web Access site definition.

You can create a new site definition by copying and modifying the existing Project Web Access site definition. This task involves use of Collaborative Application Markup Language (CAML) in two schema files: one that is a copy of a WEBTEMPP.XML file and the other a copy of a ONET.XML file. It is recommended that you create a site definition as described in this topic rather than modifying the originally installed WEBTEMPP.XML file.

  1. Copy the existing PWA folder located in the Local_Drive:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\60\Template\1033 directory. Name the new folder using all capital letters, for example PWAPLUS.
  2. Make a copy of the WEBTEMPP.XML file located at Local_Drive:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\60\TEMPLATE\1033\XML.You can give the file a unique name by appending a string to the name of the original file; for example, WEBTEMPPPLUS.XML. At run time, the compiler merges information contained in this file with the information contained in the original file in order to specify which site templates are available for creating new sites.
  3. Customize the contents of the new WEBTEMPP file.Each WEBTEMPP.XML file contains a collection of Template elements and Configuration subelements, which identify to the compiler all the site definitions that can be instantiated. The Configuration element defines a title, a description, and a URL for the image displayed in the user interface, which are properties common to each Web site created using the site definition.

    Important  In each Template element defined in the WEBTEMPP file, the Name attribute must contain the same name, in all capital letters, that is assigned to the new folder. Also, Project Server will only recognize site definitions and global templates with ID ranges between 6000 and 7000, so use unique values within that range for the ID attribute.

    The following example defines a new site definition called PWAPLUS.

    <Templates xmlns:ows="Microsoft SharePoint">
    
     <Template Name="PWAPLUS" ID="6400">
    
        <Configuration ID="0" Title="Project Workspace Plus" Type="0" Hidden="FALSE" ImageUrl="/_layouts/images/stsprev.png" Description="This template creates a site for Microsoft Office Project Server 2003 users to organize and share project documents, and to track and resolve project risks and issues. It includes document libraries, a risk tracking list, an issue tracking list and a change tracking list in which the items can be linked to projects and tasks in Project Server. It also includes other basic lists for project collaboration, such as Announcements, Events, Contacts and Quick Links.">
    
      </Configuration>
    
    </Template>
    
    </Templates>
  4. Save the file.
  5. You may need to reset Microsoft Internet Information Services (IIS) for the new template to appear as an option on the Template Selection page.
Advertisements