<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>dwinter's [MSFT] WebLog : Site Definitions</title><link>http://blogs.msdn.com/dwinter/archive/tags/Site+Definitions/default.aspx</link><description>Tags: Site Definitions</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>How does SPSPORTAL provision without a folder?</title><link>http://blogs.msdn.com/dwinter/archive/2007/06/30/how-does-spsportal-provision-without-a-folder.aspx</link><pubDate>Sat, 30 Jun 2007 23:01:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:3630085</guid><dc:creator>dwinter</dc:creator><slash:comments>0</slash:comments><comments>http://blogs.msdn.com/dwinter/comments/3630085.aspx</comments><wfw:commentRss>http://blogs.msdn.com/dwinter/commentrss.aspx?PostID=3630085</wfw:commentRss><description>&lt;P mce_keep="true"&gt;After seeing the templateID detail (&lt;A href="http://blogs.msdn.com/dwinter/archive/2006/07/07/659613.aspx"&gt;&lt;FONT color=#003399&gt;http://blogs.msdn.com/dwinter/archive/2006/07/07/659613.aspx&lt;/FONT&gt;&lt;/A&gt;) varkalav wanted to know since there is no SPSPORTAL folder in the 12\TEMPLATE\SiteTemplates folder, how does it map...&amp;nbsp;&amp;nbsp; Here is my response:&lt;BR&gt;&lt;BR&gt;Just follow the path that the product does.&amp;nbsp; When we load, we deserialize all of the information in the webtemp*.xml files.&amp;nbsp; This truely is the starting point for templates.&amp;nbsp; Let's follow the path together for the item in question:&lt;BR&gt;&lt;BR&gt;\12\TEMPLATE\1033\XML\webtempsps.xml:&lt;BR&gt;================================&lt;BR&gt;&amp;lt;Template Name="SPSPORTAL" ID="47"&amp;gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;Configuration ID="0" Title="Collaboration Portal" Type="0" Hidden="FALSE" ImageUrl="/_layouts/1033/images/template_corp_intranet.png" Description="A starter site hierarchy for an intranet divisional portal. It includes a home page, a News site, a Site Directory, a Document Center, and a Search Center with Tabs. Typically, this site has nearly as many contributors as&amp;nbsp; readers and is used to host team sites." &lt;BR&gt;ProvisionAssembly="Microsoft.SharePoint.Publishing, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" &amp;nbsp;ProvisionClass="Microsoft.SharePoint.Publishing.PortalProvisioningProvider" &amp;nbsp;ProvisionData="SiteTemplates\\WebManifest\\PortalWebManifest.xml"&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; RootWebOnly="TRUE" DisplayCategory="Publishing" VisibilityFeatureDependency="97A2485F-EF4B-401f-9167-FA4FE177C6F6"&amp;gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/Configuration&amp;gt; &lt;BR&gt;&amp;nbsp;&amp;lt;/Template&amp;gt;&lt;BR&gt;&lt;BR&gt;The key item here is to notice the ProvisionData attribute.&amp;nbsp; So lets take a look at &lt;BR&gt;\12\TEMPLATE\SiteTemplates\WebManifest\portalwebmanifest.xml:&lt;BR&gt;=================================================&lt;BR&gt;&amp;lt;portal xmlns="PortalTemplate.xsd"&amp;gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;web name="Home" siteDefinition="SPS" displayName="$Resources:spscore,PortalManifest_Home_DisplayName;" description="$Resources:spscore,PortalManifest_Home_Description;"&amp;gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;webs&amp;gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .&lt;BR&gt;&lt;BR&gt;It then goes on to define the subwebs, but what you'll see here is that the root is actually defined with the SPS site definition.&amp;nbsp; That is why you don't see a SPSPORTAL folder--because we are using the SPS folder.&amp;nbsp; Do keep in mind however that as we have ProvisionData, we also have a ProvisionClass driving the provisioning of this definition.&amp;nbsp; So its not as simple as "we just use the SPS Site definition.&amp;nbsp; In Microsoft.SharePoint.Publishing.PortalProvisioningProvider, there is specific internal code driving many other actions that take place as a part of provisioning a SPSPORTAL site.&lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=3630085" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/dwinter/archive/tags/Site+Definitions/default.aspx">Site Definitions</category></item><item><title>Changing the CreateSite page</title><link>http://blogs.msdn.com/dwinter/archive/2006/12/30/changing-the-createsite-page.aspx</link><pubDate>Sat, 30 Dec 2006 10:56:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1383675</guid><dc:creator>dwinter</dc:creator><slash:comments>6</slash:comments><comments>http://blogs.msdn.com/dwinter/comments/1383675.aspx</comments><wfw:commentRss>http://blogs.msdn.com/dwinter/commentrss.aspx?PostID=1383675</wfw:commentRss><description>&lt;P&gt;After seeing the templateID detail (&lt;A href="http://blogs.msdn.com/dwinter/archive/2006/07/07/659613.aspx"&gt;http://blogs.msdn.com/dwinter/archive/2006/07/07/659613.aspx&lt;/A&gt;) ChrisF wanted to know if there was an ID associated with the Custom Tab that shows up on the Create New Page.&amp;nbsp;&amp;nbsp;He was&amp;nbsp;trying to make that tab the default tab that shows up.&amp;nbsp; Here is my response:&lt;BR&gt;&lt;BR&gt;If you look at ...\12\TEMPLATE\ADMIN\createsite.aspx, you'll see that dialog is simply represented by:&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;wssuc:TemplatePickerControl id="InputFormTemplatePickerControl" runat="server" ShowSubWebOnly="false" ShowCustomTemplates="false" /&amp;gt;&lt;BR&gt;Look at the definition of wssuc:TemplatePickerControl in the Register directives at the top of the page and you'll find that it is comming from ~/_controltemplates/TemplatePickerControl.ascx. &amp;nbsp;Go open that (its in: ...\12\TEMPLATE\CONTROLTEMPLATES) and you'll see this:&lt;BR&gt;&amp;nbsp; &amp;nbsp; &amp;lt;input type="hidden" ID="HiddenSelectedCategory" value="" runat="server"/&amp;gt;&lt;BR&gt;You might think that you could make this something like:&lt;BR&gt;&amp;nbsp; &amp;nbsp; &amp;lt;input type="hidden" ID="HiddenSelectedCategory" value="Publishing" runat="server"/&amp;gt;&lt;BR&gt;however, the hidden tag is used only on postback--so it won't help you on page load. &lt;BR&gt;&lt;BR&gt;Your only real answer here is to use querystrings on the inbound URL. &amp;nbsp;If you browse to createsite.aspx with a DisplayCategory querystring, the control will filter. &amp;nbsp;For example:&lt;BR&gt;&amp;nbsp; &amp;nbsp; &lt;A href="http://server:centraladmin/_admin/createsite.aspx?DisplayCategory=Publishing" target=_new rel=nofollow&gt;&lt;FONT color=#003399&gt;http://server:centraladmin/_admin/createsite.aspx?DisplayCategory=Publishing&lt;/FONT&gt;&lt;/A&gt;&lt;BR&gt;Alternatively, if you browse to createsite.aspx with an ID querystring, the control will also filter. &amp;nbsp;For example:&lt;BR&gt;&amp;nbsp; &amp;nbsp; &lt;A href="http://server:centraladmin/_admin/createsite.aspx?ID=2" target=_new rel=nofollow&gt;&lt;FONT color=#003399&gt;http://server:centraladmin/_admin/createsite.aspx?ID=2&lt;/FONT&gt;&lt;/A&gt; &lt;BR&gt;will just show MPS configurations, and:&lt;BR&gt;&amp;nbsp; &amp;nbsp; &lt;A href="http://server:centraladmin/_admin/createsite.aspx?ID=47" target=_new rel=nofollow&gt;&lt;FONT color=#003399&gt;http://server:centraladmin/_admin/createsite.aspx?ID=47&lt;/FONT&gt;&lt;/A&gt;&lt;BR&gt;will show the Collaboration Portal as the only choice.&lt;BR&gt;&lt;BR&gt;Now your next question (and what ChrisF was getting at) is--how do I make the UI do this? &amp;nbsp;The answer, edit the ...\12\TEMPLATE\FEATURES\AdminLinks\Applications.xml&lt;BR&gt;Look for CreateSite, you will see:&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;UrlAction&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Url="/_admin/createsite.aspx" /&amp;gt;&lt;BR&gt;Make this (for example):&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;UrlAction&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Url="/_admin/createsite.aspx?DisplayCategory=Publishing" /&amp;gt;&lt;BR&gt;&lt;BR&gt;Save it and refresh the page. &amp;nbsp;You'll see the link is now updated. &amp;nbsp;&lt;BR&gt;Now I have to throw out the disclaimer that this modification may need to be redone/removed with a servicepack,&amp;nbsp;hotfix, or upgrade to o14 (make sure you let CSS know you made this change&amp;nbsp;if you call with an issue with Central Admin).&amp;nbsp;&amp;nbsp;However, if you decide to accept the risk associated with this kind of change, yes you can make it happen.&lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=1383675" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/dwinter/archive/tags/Site+Definitions/default.aspx">Site Definitions</category></item><item><title>Updated templateID Info for SharePoint 2007</title><link>http://blogs.msdn.com/dwinter/archive/2006/07/07/updated-templateid-info-for-sharepoint-2007.aspx</link><pubDate>Sat, 08 Jul 2006 05:16:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:659613</guid><dc:creator>dwinter</dc:creator><slash:comments>20</slash:comments><comments>http://blogs.msdn.com/dwinter/comments/659613.aspx</comments><wfw:commentRss>http://blogs.msdn.com/dwinter/commentrss.aspx?PostID=659613</wfw:commentRss><description>&lt;FONT face=Calibri size=3&gt;v3 has some different template info, and as I'm sure more and more folks will be looking at customization in SharePoint 2007, I thought I'd lay out what the Microsoft templates are so that you don't end up creating any custom ones using our templateIDs.&lt;BR&gt;&lt;BR&gt;Here's the list:&lt;BR&gt;&amp;nbsp; &lt;U&gt;ID&amp;nbsp;&lt;/U&gt;- &lt;U&gt;FOLDER (extra info)&lt;/U&gt;&amp;nbsp; -&amp;nbsp; &lt;U&gt;Configurations&lt;BR&gt;&lt;/U&gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0 - GLOBAL (SetupPath=global) - "Global template"&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1 - STS - "windows SharePoint Services Site", "Team Site", "Blank Site", "Document Workspace"&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2 - MPS - "Basic Meeting Workspace", "Blank Meeting Workspace", "Decision Meeting Workspace", "Social Meeting Workspace", "Multipage Meeting Workspace"&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3 - CENTRALADMIN - "Central Admin Site"&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 4 - WIKI - "Wiki Site"&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 7 - BDR - "Document Center"&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 9 - BLOG - "Blog"&lt;BR&gt;&amp;nbsp;&amp;nbsp; 20 - SPS (OBSOLETE) - "SharePoint Portal Server Site"&lt;BR&gt;&amp;nbsp;&amp;nbsp; 21 - SPSPERS - "SharePoint Portal Server Personal Space"&lt;BR&gt;&amp;nbsp;&amp;nbsp; 22 - SPSMSITE - "Personalization Site"&lt;BR&gt;&amp;nbsp;&amp;nbsp; 30 - SPSTOC (OBSOLETE) - "Contents area Template"&lt;BR&gt;&amp;nbsp;&amp;nbsp; 31 - SPSTOPIC (OBSOLETE) - "Topic area template"&lt;BR&gt;&amp;nbsp;&amp;nbsp; 32 - SPSNEWS (OBSOLETE) - "News area template"&lt;BR&gt;&amp;nbsp;&amp;nbsp; 33 - SPSNHOME (SubWebOnly) - "News Home template"&lt;BR&gt;&amp;nbsp;&amp;nbsp; 34 - SPSSITES - "Site Directory area template"&lt;BR&gt;&amp;nbsp;&amp;nbsp; 36 - SPSCOMMU (OBSOLETE) - "Community area template"&lt;BR&gt;&amp;nbsp;&amp;nbsp; 38 - SPSREPORTCENTER - "Report Center Site" &lt;BR&gt;&amp;nbsp;&amp;nbsp; 39 - CMSPUBLISHING (SetupPath=SiteTemplates\PUBLISHING) - "Publishing and Team Collaboration Site"&lt;BR&gt;&amp;nbsp;&amp;nbsp; 40 - OSRV (SetupPath=SiteTemplates\OSRV) - "Shared Services Administration Site" &lt;BR&gt;&amp;nbsp;&amp;nbsp; 47 - SPSPORTAL - "Corporate Intranet Site"&lt;BR&gt;&amp;nbsp;&amp;nbsp; 50 - SRCHCEN - "Search Center"&lt;BR&gt;&amp;nbsp;&amp;nbsp; 51 - PROFILES - "Profiles"&lt;BR&gt;&amp;nbsp;&amp;nbsp; 52 - BLANKINTERNETCONTAINER - "Internet Presence Web Site"&lt;BR&gt;&amp;nbsp;&amp;nbsp; 53 - BLANKINTERNET - "Publishing Site", "Press Releases Site", "Publishing Site"&lt;BR&gt;&amp;nbsp;&amp;nbsp; 54 - SPSMSITEHOST - "My Site Host"&lt;BR&gt;&amp;nbsp;&amp;nbsp; 90 - SRCHCENTERLITE (SetupPath=SiteTemplates\SRCHCENTERLITE) - "Search Center Lite"&lt;BR&gt;&amp;nbsp;6221 - PWA (SetupPath=SiteTemplates\PWA) - "Project Web Access Site"&lt;BR&gt;&amp;nbsp;6215 - PWS (SetupPath=SiteTemplates\PWS) - "Project Workspace"&lt;BR&gt;14483 - OFFILE - "Records Repository", "Records Repository"&lt;BR&gt;&lt;BR&gt;Hopefully this will be of some use to someone.&amp;nbsp;&amp;nbsp;Do keep in mind that&amp;nbsp;most things you would consider doing in SharePoint 2007 that you would have&amp;nbsp;required&amp;nbsp;editing Site Definitions in SharePoint 2003 can now be done using features and even solutions.&amp;nbsp; The global template even allows for "stapler" features to be applied across all existing templates, although most things like custom lists/etc would be added simply with a "staplee" feature.&lt;/FONT&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=659613" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/dwinter/archive/tags/Site+Definitions/default.aspx">Site Definitions</category></item><item><title>Updated statement from Microsoft on custom site definitions</title><link>http://blogs.msdn.com/dwinter/archive/2005/05/12/updated-statement-from-microsoft-on-custom-site-definitions.aspx</link><pubDate>Thu, 12 May 2005 17:40:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:416867</guid><dc:creator>dwinter</dc:creator><slash:comments>1</slash:comments><comments>http://blogs.msdn.com/dwinter/comments/416867.aspx</comments><wfw:commentRss>http://blogs.msdn.com/dwinter/commentrss.aspx?PostID=416867</wfw:commentRss><description>&lt;P&gt;&lt;A href="http://support.microsoft.com/Default.aspx?id=898631"&gt;http://support.microsoft.com/Default.aspx?id=898631&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Here's the meat, I have highlighted the key points:
&lt;HR&gt;

&lt;H3&gt;Supported scenarios&lt;/H3&gt;
&lt;P&gt;When you work with custom site definitions or custom area definitions, the following scenarios are supported: 
&lt;TABLE class=list&gt;

&lt;TR&gt;
&lt;TD class=bullet&gt;•&lt;/TD&gt;
&lt;TD class=text&gt;To create a custom site definition or a custom area definition, you &lt;FONT&gt;&lt;STRONG&gt;copy&lt;/STRONG&gt; an existing site definition&lt;/FONT&gt; or an existing area definition, and &lt;FONT&gt;then you rename and modify the new site definition&lt;/FONT&gt; or the new area definition. For more information about this supported method, visit the following Microsoft Web site: 
&lt;DIV class=indent&gt;&lt;SPAN&gt;&lt;A href="http://msdn.microsoft.com/library/en-us/spptsdk/html/tsptCustomExistingWebTemplate_SV01017467.asp?frame=true"&gt;http://msdn.microsoft.com/library/en-us/spptsdk/html/tsptCustomExistingWebTemplate_SV01017467.asp?frame=true&lt;/A&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/TD&gt;&lt;/TR&gt;
&lt;TR&gt;
&lt;TD class=bullet&gt;•&lt;/TD&gt;
&lt;TD class=text&gt;You modify the .xml files and the .aspx files in a custom site definition or in a custom area definition &lt;FONT&gt;&lt;STRONG&gt;before &lt;/STRONG&gt;you create new sites or new portal areas by using the custom site definition&lt;/FONT&gt; or the custom area definition.&lt;/TD&gt;&lt;/TR&gt;
&lt;TR&gt;
&lt;TD class=bullet&gt;•&lt;/TD&gt;
&lt;TD class=text&gt;You deploy the custom site definition or the custom area definition. That is, you create new sites or new portal areas by using the custom site definition or the custom area definition. To modify the new sites or the new portal areas that you created, you use one or more of the following three supported methods: 
&lt;TABLE class=list&gt;

&lt;TR&gt;
&lt;TD class=bullet&gt;•&lt;/TD&gt;
&lt;TD class=text&gt;You modify the site or the portal area by &lt;FONT&gt;using the user interface&lt;/FONT&gt; in SharePoint Portal Server 2003 or in Windows SharePoint Services.&lt;/TD&gt;&lt;/TR&gt;
&lt;TR&gt;
&lt;TD class=bullet&gt;•&lt;/TD&gt;
&lt;TD class=text&gt;You &lt;FONT&gt;programmatically modify the site or the portal area by using the SharePoint Portal Server object model&lt;/FONT&gt; or the Windows SharePoint Services object model.&lt;/TD&gt;&lt;/TR&gt;
&lt;TR&gt;
&lt;TD class=bullet&gt;•&lt;/TD&gt;
&lt;TD class=text&gt;You modify the site or the portal area by using Microsoft Office&lt;FONT&gt; FrontPage&lt;/FONT&gt; 2003.&lt;/TD&gt;&lt;/TR&gt;&lt;/TABLE&gt;&lt;B&gt;Note&lt;/B&gt; These three methods are also &lt;STRONG&gt;supported methods&lt;/STRONG&gt; to use if you want to modify the Default.aspx page in the portal site. Microsoft does &lt;STRONG&gt;not support using other methods &lt;/STRONG&gt;to modify the Default.aspx page in the portal site.&lt;/TD&gt;&lt;/TR&gt;&lt;/TABLE&gt;&lt;A id=XSLTH3123121122120121120120&gt;&lt;/A&gt;&lt;/P&gt;
&lt;H3&gt;Unsupported scenarios&lt;/H3&gt;
&lt;P&gt;When you work with custom site definitions or custom area definitions, the following scenarios are not supported: 
&lt;TABLE class=list&gt;

&lt;TR&gt;
&lt;TD class=bullet&gt;•&lt;/TD&gt;
&lt;TD class=text&gt;You modify one of the default site definitions or one of the default area definitions that are included in SharePoint Portal Server 2003 or in Windows SharePoint Services.&lt;BR&gt;&lt;BR&gt;Microsoft does&lt;FONT&gt;&lt;STRONG&gt; not support modifying the default set of site definitions&lt;/STRONG&gt;&lt;/FONT&gt; or area definitions that are installed when you installed Windows SharePoint Services and SharePoint Portal Server 2003. Additionally, Microsoft does not support modifying the .xml files or the .aspx files in the default site definition or in the default area definition. &lt;/TD&gt;&lt;/TR&gt;
&lt;TR&gt;
&lt;TD class=bullet&gt;•&lt;/TD&gt;
&lt;TD class=text&gt;You modify a custom site definition or a custom area definition &lt;FONT&gt;&lt;STRONG&gt;after you deploy the custom site definition&lt;/STRONG&gt;&lt;/FONT&gt; or the custom area definition.&lt;BR&gt;&lt;BR&gt;Microsoft does not support modifying a custom site definition or a custom area definition &lt;FONT&gt;&lt;STRONG&gt;after you create a new site or a new portal area&lt;/STRONG&gt;&lt;/FONT&gt; by using that site definition or area definition. Additionally, Microsoft does not support modifying the .xml files or the .aspx files in the custom site definition or in the custom area definition after you deploy the custom site definition or the custom area definition.&lt;/TD&gt;&lt;/TR&gt;
&lt;TR&gt;
&lt;TD class=bullet&gt;•&lt;/TD&gt;
&lt;TD class=text&gt;You modify the Webtemp.xml file or the Webtempsps.xml file that is located in the following folder: 
&lt;DIV class=indent&gt;Drive:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\60\Template\LCID\XML&lt;/DIV&gt;With one exception, &lt;FONT&gt;Microsoft does not support modifying the Webtemp.xml file or the Webtempsps.xml file&lt;/FONT&gt;. The exception is the Webtemp.xml file. Microsoft supports modifying the Webtemp.xml file only if you want to &lt;FONT&gt;hide a specific template&lt;/FONT&gt;. To hide a specific template, you modify the Hidden parameter of that template in the Webtemp.xml file.&lt;/TD&gt;&lt;/TR&gt;&lt;/TABLE&gt;&lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=416867" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/dwinter/archive/tags/Site+Definitions/default.aspx">Site Definitions</category><category domain="http://blogs.msdn.com/dwinter/archive/tags/Product+Support/default.aspx">Product Support</category></item><item><title>Fun with TemplateIDs in SharePoint</title><link>http://blogs.msdn.com/dwinter/archive/2005/02/24/fun-with-templateids-in-sharepoint.aspx</link><pubDate>Fri, 25 Feb 2005 07:06:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:380169</guid><dc:creator>dwinter</dc:creator><slash:comments>5</slash:comments><comments>http://blogs.msdn.com/dwinter/comments/380169.aspx</comments><wfw:commentRss>http://blogs.msdn.com/dwinter/commentrss.aspx?PostID=380169</wfw:commentRss><description>&lt;p&gt;&lt;font face="Arial" size="2"&gt;Today I'm taking a slight break from direct coding examples to introduce a simple topic which will be useful later when I write about customizations in SharePoint.&amp;nbsp; Don't fret though, I'll be writing about Microsoft.SharePoint.Portal next week for those of you just reading this for code.&lt;br /&gt;&lt;br /&gt;In SharePoint, both lists and sites have the capability of being saved as a template.&amp;nbsp; You can view already saved lists in the &lt;strong&gt;List Template Gallery&lt;/strong&gt; and already saved Sites in the &lt;strong&gt;Site Template Gallery&lt;/strong&gt;.&amp;nbsp; When you do save a list or a site you are presented with a link to the appropriate gallery afterward.&amp;nbsp;&amp;nbsp;You must go to the gallery to get a copy of that tempalte if you would like to save it to your filesystem in order to transport it elsewhere.&amp;nbsp; These templates have the extension of STP once you save them.&lt;br /&gt;&lt;br /&gt;I sometimes&amp;nbsp;see&amp;nbsp;STP Templates confused with what is known as &lt;em&gt;site definitions&lt;/em&gt;.&amp;nbsp; This is simply because &lt;em&gt;site definitions&lt;/em&gt; are stored on the filesystem of the server under a folder called TEMPLATES.&amp;nbsp; These two things are in NO WAY the same.&amp;nbsp; They are however used together since STP Templates are essentially the delta, or difference between a specific &lt;em&gt;site definition&lt;/em&gt; and what the site was when it was saved as an STP Template.&amp;nbsp; Think of the STP Template as paint without a canvas.&amp;nbsp; Think of the &lt;em&gt;site definition&lt;/em&gt; as the canvas without the paint.&amp;nbsp; Put the two together, and you no longer have something everyone has, you have something unique that you have created.&amp;nbsp; This is not to say that you can't take a copy of&amp;nbsp;your paint and put it on someone elses canvas (because their templateID number happens to be the same), but it would not truely be a copy of the original and their canvas may have some holes in it.&amp;nbsp; I will be writing much about &lt;em&gt;site definitions&lt;/em&gt; in later entries (its one of my favorite topics of discussion).&lt;br /&gt;&lt;br /&gt;For the purpose of following along with this blog, I would encourage you to save a list and a site as a template, and then save them out of their galleries to your filesystem.&amp;nbsp; Once you have them saved, rename the STP files so that they have the extension of CAB.&amp;nbsp; In the CAB file, you will find a MANIFEST.XML file.&amp;nbsp; You may see some other files, which you can ignore for now.&lt;br /&gt;&lt;br /&gt;Open the MANIFEST.XML file in IE and let it render.&amp;nbsp; Near the top, you will see a TemplateID.&amp;nbsp; It looks like this:&lt;br /&gt;&lt;br /&gt;&lt;img src="http://storage.msn.com/x1pGHpas_o48lkOK7KnzJFwGfPhFoSoF841aKJ2gKotM48Y-vhq-7dzgmsHV2QQkjR-iaajiyU-YnEBPa1r0O2sezHhWQQrK1nj1_TuZEUD0Bxcjrqu3Ireew" /&gt;&lt;br /&gt;&lt;br /&gt;You will see the TemplateID defined in both your saved Site Template and your saved List Template.&lt;br /&gt;&lt;br /&gt;The slightly interesting thing about this is that neither of the templates are truely a "template" all by themselves.&amp;nbsp; The templateID acts as a pointer.&amp;nbsp; In the List Template, the template ID is pointing to the specific list definition (which is also defined in the XML) within the &lt;em&gt;site definition&lt;/em&gt; identified by that same number.&amp;nbsp; In the Site Template, the template ID is simply pointing to a specific &lt;em&gt;site definition &lt;/em&gt;in its entirety.&amp;nbsp; What the heck do I mean&amp;nbsp;by all&amp;nbsp;this&amp;nbsp;you might be asking...&lt;br /&gt;&lt;br /&gt;To really answer this, you have to look at some of the basics of &lt;em&gt;site definitions&lt;/em&gt;.&amp;nbsp;Here is a picture from one of my WSS only servers of my TEMPLATE\1033 folder (1033 for english of course--I have since installed the Swedish template language pack, so on my server I have a 1053 folder as well).&lt;br /&gt;&lt;br /&gt;&lt;img src="http://storage.msn.com/x1pGHpas_o48lkOK7KnzJFwGfPhFoSoF841aKJ2gKotM48W4FV_gKANz5lYSLdDfx2ihG0NoF0EB0BvbkMjaMGmC1kRJqnAe2STwMMYmN7oNdmh3cPryH6YGQ" /&gt;&lt;br /&gt;&lt;br /&gt;Note that the 1033 Template has MPS, STS, and XML.&amp;nbsp; The MPS and STS have a LISTS folder with a variety of recognizable list types.&lt;br /&gt;MPS stands for meeting site, STS stands for team site.&amp;nbsp; XML is where the WEBTEMP.XML&amp;nbsp;(and others) are stored to configure the &lt;em&gt;site definition&lt;/em&gt;.&lt;br /&gt;&lt;br /&gt;Here's the XML folder:&lt;br /&gt;&lt;br /&gt;&lt;img src="http://storage.msn.com/x1pGHpas_o48lkOK7KnzJFwGfPhFoSoF841aKJ2gKotM48D-bXxdfUaVgH4C1Km0xqmO8QeFNUQylJSFiZFx_7iTyEkCrIDRKB29bEPqEVXbTV1iTsaWQizOQ" /&gt;&lt;br /&gt;&lt;br /&gt;I specifically mentioned the&amp;nbsp;WEBTEMP.XML because this ties together the initial&amp;nbsp;structure of the &lt;em&gt;site definition&lt;/em&gt;.&amp;nbsp; When we start up IIS we will look in the various template\&amp;lt;LANG&amp;gt;\XML folders for WEBTEMP*.XML and read their config into memory (SharePoint Portal adds a WEBTEMPSPS.XML if you're paying close attention you may have noted that...).&amp;nbsp; Here's what we read on the default WEBTEMP.XML:&lt;br /&gt;&lt;br /&gt;&lt;img src="http://storage.msn.com/x1pGHpas_o48lkOK7KnzJFwGfPhFoSoF841aKJ2gKotM4_hIFapjp_BkBY70Tzh7egmpy-iMIaLlBGKpew5BX01lJ4Vl8hx-i5ZElFXQAThWV68iBJFze3Stg" /&gt;&lt;br /&gt;&lt;br /&gt;Notice how the &lt;font color="#000080"&gt;&amp;lt;&lt;/font&gt;&lt;font color="#fd0000"&gt;Template Name &lt;/font&gt;&lt;font color="#000000"&gt;is set to the corresponding&amp;nbsp;folder names (these are in CAPS) in the TEMPLATE\1033 folder.&amp;nbsp; The ID number in this configuration file is what the templateID I spoke of&amp;nbsp;earlier is associated with.&lt;br /&gt;&lt;br /&gt;So if you save a document library (which yes, is a list) as a template and it has templateID of 1, you know it is sourcing the TEMPLATE\1033\STS\LISTS\DOCLIB files.&amp;nbsp; Keep in mind that when you render the document library, you will be viewing a composite of the &lt;em&gt;site definition&lt;font face="Arial" size="2"&gt;&lt;font color="#000000"&gt;&lt;/em&gt;&lt;/font&gt;&lt;/font&gt; and your "delta" together.&amp;nbsp; The saved list as a STP Template is simply the "delta".&amp;nbsp; If you truely wanted a copy of a list or site using templates, you need to copy the appropriate &lt;em&gt;site definition&lt;/em&gt;&lt;font face="Arial" size="2"&gt;&lt;font color="#000000"&gt;&lt;/font&gt;&lt;/font&gt;&lt;em&gt; &lt;/em&gt;as well.&lt;font face="Arial" size="2"&gt;&lt;font color="#000000"&gt;&lt;/font&gt;&lt;/font&gt;&lt;br /&gt;&lt;br /&gt;One of the things to know now that you have all this in your head is that you can't take a list based on one templateID and use it in a site based on another templateID.&amp;nbsp; You would be able to import the template and see it in the gallery, but you would not see it on the create list unless the templateID of that imported list item matches the site's templateID that the gallery is within.&lt;br /&gt;&lt;br /&gt;This is quite a process to go through though just to look at what the value of templateID is however... so here's a trick for you.&lt;br /&gt;If you modify the list gallery, you can add additional collumns to the list and view what templateID the list was originated from (much easier).&amp;nbsp; So if you're unsure what your site is, simply save a list--modify the view in your &lt;strong&gt;List Template Gallery&lt;/strong&gt; and you'll get your templateID number.&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=380169" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/dwinter/archive/tags/Site+Definitions/default.aspx">Site Definitions</category></item><item><title>List deleted error</title><link>http://blogs.msdn.com/dwinter/archive/2005/02/18/list-deleted-error.aspx</link><pubDate>Fri, 18 Feb 2005 08:23:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:375901</guid><dc:creator>dwinter</dc:creator><slash:comments>0</slash:comments><comments>http://blogs.msdn.com/dwinter/comments/375901.aspx</comments><wfw:commentRss>http://blogs.msdn.com/dwinter/commentrss.aspx?PostID=375901</wfw:commentRss><description>&lt;p&gt;Ran into an error where when you browse a custom list for the first time after an &lt;strong&gt;iisreset&lt;/strong&gt; the list would show an error message noting that it has been deleted such as &lt;em&gt;The list or view of a list that is referenced here no longer exists.&lt;/em&gt;.&amp;nbsp; If you simply refresh the page the list is there and usable until the worker process resets.&lt;br /&gt;&lt;br /&gt;After some investigation, it all came back to the customized &lt;em&gt;schema.xml &lt;/em&gt;file for the custom list.&amp;nbsp; This is IMHO a perfect time to remind folks making custom lists that they really need to follow the &lt;em&gt;schema.xml&lt;/em&gt; definition on &lt;a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/spptsdk/html/tscamlovSCHEMA_SV01084512.asp"&gt;http://msdn.microsoft.com/library/default.asp?url=/library/en-us/spptsdk/html/tscamlovSCHEMA_SV01084512.asp&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;The specific problem with the customized &lt;em&gt;schema.xml&lt;/em&gt; in this case was that the toolbar element was not there at all.&lt;br /&gt;&lt;br /&gt;In short, if you have problems like what I described--consider revisiting your schema.xml, make sure it includes what MSDN documents as required and reprovision your list object.&lt;br /&gt;&lt;br /&gt;I will be making some additional blog entires at a later time dealing with site customization, best practices, attempt to make supportibility more clear, etc.&amp;nbsp; This is a large topic for me--so I'll be posting information out a little at a time.&lt;/p&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=375901" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/dwinter/archive/tags/Site+Definitions/default.aspx">Site Definitions</category></item></channel></rss>