Logo 
Search:

MOSS Forum

Ask Question   UnAnswered
Home » Forum » MOSS       RSS Feeds

Adding Site Template to top Template Selection gallery

  Asked By: Jesse    Date: Nov 17    Category: MOSS    Views: 2892

How do I add a custom site template to the top gallery using in 2007?

Here's what I've done so far:

1. Saved my site as a site template
2. Used the stsadm addtemplate command to upload it.
3. Made a copy of my webtemp.xml file in C:\Program Files\Common
Files\Microsoft Shared\web server extensions\12\TEMPLATE\1033\XML
4. Deleted all the additional standard templates from the file and
added my custom one.

<Templates xmlns:ows="Microsoft SharePoint">
<Template Name="DSI" ID="10">
<Configuration ID="0" Title="DSI" Hidden="FALSE"
ImageUrl="/_layouts/images/DSI.png" Description="DSI Team Site"
DisplayCategory="Collaboration" > </Configuration>
</Template>
</Templates>

5. Did an IISreset

I still don't see my template. Did I miss a step or do something
incorrect?

Share: 

 

14 Answers Found

 
Answer #1    Answered By: Emily Clark     Answered On: Nov 17

You've deleted  all the site  Definitions from the webtemp file. the
webtemp.xml files are not used to reference site templates  only site
definitions. Adding a Site template  only requires putting it in the
site template gallery  of the top  level site of the site collection.

The one exception is if you have publishing turned on. Then you may
have to go to the site Templates and layout pages link under the look
and feel column in the site settings page to make it available.

 
Answer #2    Answered By: Alycia Everett     Answered On: Nov 17

What if I want the site  template to be available across multiple site
collections?

 
Answer #3    Answered By: Kaila Hahn     Answered On: Nov 17

The only way to make a site  template available in multiple site
collections is to add  it to the top  level site template  gallery of each
of the site collections. I'm pretty sure that the stsadm  -o addtemplate
-f templatefilename -title templateTitle command  will add the template
to ALL the top level site galleries. Then all you need to do is an
IISreset and it should be available everywhere.



If you want one copy  of a site provisioning document to use across the
whole Farm you need to learn how to create a custom  site definition.

 
Answer #4    Answered By: Ada Sosa     Answered On: Nov 17

You can use the following stsadm  command to make an STP available to all
Site Collections in the Farm (just like a Site Definition):

stsadm.exe -o addtemplate
-filename <template filename>
-title <template title>
[-description <template description>]

This does not work for List Templates.

 
Answer #5    Answered By: Cheyenne Lewis     Answered On: Nov 17

Will it automatically make it available for any new site  collections
that I create after I run the stsadm  command? Or do I need to run
this every time I add  a new site collection?

 
Answer #6    Answered By: Liana Alston     Answered On: Nov 17

You'll need to run it each time you add  a new site  collection.

 
Answer #7    Answered By: Daamodar Kolhe     Answered On: Nov 17

The template  is
available in new site  collections. You do NOT need to run the STSADM
command line each time you create a new site collection. Sorry for the
misinformation.

 
Answer #8    Answered By: Emerson Franks     Answered On: Nov 17

I think the technical term is "the template  gallery in the sky" ;

 
Answer #9    Answered By: Ned Storm     Answered On: Nov 17

Actually, I think the real technical term is 'OOOPPPsssss'.

 
Answer #10    Answered By: Myron Calhoun     Answered On: Nov 17

Right, what a blast from the past! That's exactly what I used to call
it; guess it still applies.

 
Answer #11    Answered By: Rena William     Answered On: Nov 17

The AddTemplate operation makes the Site Template (STP) available to all
Site Collections in the Farm, just like a Site Definition. So, it should
be visible under the Custom tab for Site Collections, even new ones. I
don't think there is any way to move it under some other tab, these will
always be under the Custom tab.

 
Answer #12    Answered By: Shanda Nolan     Answered On: Nov 17

Okay, so I saved  my site  as a site template  and used stsadm  to upload
it the top  gallery. I create a new site collection and selected my
new site template and they site was created successfully. However,
when I go to the new site it says 'File not found'. Any idea why this
happening or how I can figure out what is going on?

 
Answer #13    Answered By: Bailey Lewis     Answered On: Nov 17

I believe it relates to the original site  template. If anywhere in this
site template  you point to a URL that doesn't exist in the new location,
you will receive the "File not found" message. For example, if you have
an image URL that points to the TEMPLATE/IMAGES folder under the 12 hive
and that file  does not exist in the IMAGES folder, then you will receive
this message. Errors like this can occur when defining a site template in
development and deploying it to production.

 
Answer #14    Answered By: Quentin Cummings     Answered On: Nov 17

This can also happen with references to images in a Picture Library that are
referenced by URL in another page. The URL's generated (e.g.) by using the
Rich Text Editor are fully-qualified, not relative. Therefore, in the site
created from the template, they are still pointing to the original
template-generating site.

IMO, one really should have a choice of absolute or relative URL's when
linking in the Rich Text Editor.

 
Didn't find what you were looking for? Find more on Adding Site Template to top Template Selection gallery Or get search suggestion and latest updates.




Tagged: