How to: Modify a project portal site template

We have received a few requests for how to modify the default team project settings recently. So I’m writing this post to share the steps of modifying a site template.

As we already know, when we create a new team project, the corresponding portal in SharePoint is also created. The portal is created with the SharePoint template referenced in the process template. After we download a process template, we can open the WssTasks.XML. Then we will find a <site> element which specifies the SharePoint site template and language id. Until now, the SharePoint site template can not be edited in the Process Editor from TFS power tool.

When TFS is installed, the SharePoint site templates for MSF for Agile and MSF for CMMI are uploaded to SharePoint. You can find these template in %ProgramFiles%\Microsoft Visual Studio 2008 Team Foundation Server\Tools\Templates. The below steps are for how to modify the portal site template. The MSFAgile.stp is for WSS 2.0 and MSFAgile30.stp is for WSS 3.0.

Configure an existing team portal and save the portal as an template.

  1. Open an existing team portal and modify settings such as time zone.
  2. In the portal, click Site Actions->Site Settings->Save site as template.
  3. Since the process template already contains the default document libraries, so we uncheck the Include Content checkbox.
  4. Click OK and MyTemplate is created in Site Template Gallery.
  5. Go to Site Actions->Site Settings->Site templates and download MyTemplate.stp to a local folder.

Sometimes, you need to modify the MyTemplate.stp manually. Skip these steps if you don’t need to do that.

  1. Install Microsoft Cabinet Software Development Kit. The portal template for a team project is just cab files. We can use the CABARC.EXE in the SDK to extract and recreate the template files.
  2. Login the TFS server and navigate to %ProgramFiles%\Microsoft Visual Studio 2008 Team Foundation Server\Tools\Templates.
  3. Find the template you want to modify. Make a back up of it and change the extension from .stp to .cab. Then you can open the .cab file with Windows Explorer. Copy all contents to a folder, say C:\TemplateExtract.

    TemplateExtract2

  4. Modify the settings in the manefist.xml based on your requirement and save.
  5. Recreate the .stp template file with CABARC.EXE. For example: CABARC N “C:\MyTemplate.stp C:\TemplateExtract\*.*”, then MyTemplate.stp should be created in C: drive.

    addTemplate2

Upload the portal site template to SharePoint.

  1. List the global template with stsadm -o enumtemplates. stsadm.exe is usually located in %ProgramFiles%\common files\microsoft shared\web server extensions\12\bin. Remember the tile of the site template you want to modify.

    enumtemplate

  2. If you want to add a new template, you can skip this step. If you want to update and existing site template, you need to first delete the old template with stsadm –o deletetemplate and then upload the template with the same title. For example: stsadm –o deletetemplate –title VSTS_MSFAgile.

    deleteTemplate

  3. Add the template with stsadm –o addtemplate command. For example: stsadm –o addtemplate –filename C:\MyTemplate.stp –title VSTS_MSFAgile. Since a process template references the site template by template title. If you are replacing an existing template, make sure the title is the same as displayed when run enumtemplates in the previous step.

    AddTemplate4

  4. Run iisreset to restart the IIS.

Finally, you can create a new team project to test the newly uploaded site template.

8 comments:

Anonymous September 11, 2009 at 3:25 AM

Thanks for the post this has proven most useful in enabling me to set the desired default locale settings on TFS 2005 for the Agile and CMMI templates. However would you happen to know how I can achieve the same thing for the Agile Scrum Conchango template (v1.2) on TFS 2005? It would appear that there is no .stp file for this template so am not sure what process it uses when creating a new site? what I really need to know is how can I configure default time and locale settings for projects created with this template?

Bill Wang September 11, 2009 at 4:00 AM

You can first set the time zone in an existing SharePoint site with that template, then export the site as a teamplate to get the .stp file. See http://office.microsoft.com/en-us/help/HA101577791033.aspx for more information.

Sonia March 3, 2011 at 3:45 AM

Hi. Greetings. This post is really good and blog is really interesting. It gives good details.

Phones for Sale

wedding dresses 2011 April 7, 2011 at 1:10 AM

Thanks for the post

Web Application Development July 29, 2011 at 5:54 AM

Pretty impressed by the caliber of intelligence on the webpage. There are a bunch of great resources here. I know I will check out this place often.

white Graduation Dresses November 2, 2011 at 6:42 PM

http://www.fashionweddinggowns.com/special-occasion-dresses-graduation-dresses_c180/

2012 Wedding Dresses November 3, 2011 at 1:03 AM

Beautifull piece, love the vintage look

fdhty April 23, 2013 at 6:48 PM

Life is not measured by the number of breaths we take scarlet blade gold, but by the moments that take our breath away scarlet blade gold. I have a simple philosophy: Fill what's empty scarlet blade gold.


If you can hold something up and put it down, it is called weight-lifting; if you can hold something up but can never put it down Cheap Minecraft Gift Code, Love makes man grow up or sink down Buy Xbox Live Points, I love you not for who you are, but for who I am before you, and successful in each endeavor Ultimate Game Card.