Customizing default SharePoint site
I have successfully made changes to the SharePoint site for a test project, using FrontPage, but I need to make the changes to the template (or whatever) so that all new projects will have the change.
I saw an old post here that says the SharePoint files are stored in the db somewhere, though I looked and didn't find them. Is this true, and if so where are they? If not, same question.
Thanks,
Nathan
Hi Nathan,
Probably the easiest way to do this is to replace the site template that VSTF uses when creating the site. You will need to do the following:
1. Save the site you have created/modified as a site template. There are links to do this in the 'Site Settings' page (click on 'Site Settings' at the top of the page, then click on 'Go to Site Administration'. Click on 'Save site as template', enter a name/title and click 'OK'. On the resulting page, click on 'site template gallery', click on your newly added template and select a location to save it to on your local machine.
2. Add this template as a 'global' template. You have a choice to make here: You can either replace the existing site template that is used by PCW, or you can create a new site template and modify the process templates to use the new template. If you wish to change the process templates, you will need to download them using the Process Template Manager, change the WssTasks.xml file so the following line has the correct template title:
<site template="VSTS_MSFAgile" language="1033" />
and then re-upload the process template to the server.
In any case, to upload the site template file (.stp file), you will need to open a command prompt on the AT machine, navigate to %programfiles%\common files\microsoft shared\web server extensions\60\bin.
You can enumerate the global templates that exist on the server with the following command:
stsadm -o enumtemplates
If you are overwriting an existing template you may need to remove the existing one before uploading a new one. You can do this by running the following command:
stsadm -o deletetemplate -title <title of the template to delete> -lcid <lcid of the template, like 1033 for English>
(ie: stsadm -o deletetemplate -title VSTS_MSFAgile -lcid 1033)
Use the following command to upload the new template file.
stsadm -o addtemplate -filename <path to your exported .stp file> -title <title as it appears in the xml fragment above>
(ie: stsadm -o addtemplate -filename c:\foo.stp -title VSTS_MSFAgile)
Good luck!
-Dennis