I would like to programmatically add a custom site template (.stp file) to a MOSS team site collection as part of my build process. Can anyone point me towards the best way to do this?
Thanks, MagicAndi.
build-processmosssharepointsharepoint-2007
I would like to programmatically add a custom site template (.stp file) to a MOSS team site collection as part of my build process. Can anyone point me towards the best way to do this?
Thanks, MagicAndi.
Best Answer
A way of doing this with a feature would be to use the File element. STP files live in
/_catalogs/wt
so this type of feature will upload the file.Update: More details in Create Feature to Upload Site Template File (.stp) in MOSS but for completeness here is the elements.xml: