Home » SharepointRSS

Deploying master pages in sharepoint 2007

Answer:

Hi,

You can't deploy using a standard feature with a <Module> as the file already exists and SharePoint will ignore it, even if you set theIgnoreIfAlreadyExists to false on the <File> element.  A solution could be to use the following custom STSADM command

Upload Masterpages and Page Layouts: http://msdn.microsoft.com/en-us/library/ms459213.aspx

I created this as I was in a similar situation to yourself where a non developer made customisations and wanted them deployed to another environment.  You can browse the masterpage and page layout gallery, select the dropdown menu on the file and send to > download file.  You can manually copy to the destination server and upload each file to the masterpage and page layout gallery, publish major version and approve but if you have many files this can be time consuming so I opted to create a new STSADM operation.

Hope this helps

Dave

 
 
 


Microsoft   |   Windows   |   Visual Studio   |   Tech Videos   |   Follow us on Twitter