In Moss 2007 i have to remove the Site Template tab which is available on "newsbweb.aspx"
Hi, I have to remove the site template tab, which we can see while creting the new site or subsite. Can anyone help me to solve this issue Regards, Pankaj Pawar
October 28th, 2010 6:05am

hello site creation page is a regular application layout page NewSbWeb.aspx located in 12/template/layouts folder on file system of web server. So you can modify this page by hiding template picker control. Find the following code in this page: <wssuc:TemplatePickerControl id="InputFormTemplatePickerControl" runat="server" ShowRootWebOnly="false" /> One way to hide it is to add parent <div> with style="visibility: hidden; display: none". But remember that any change of standard application layout pages will affect all your web applications. In order to hide template picker for one particular application you can use conditional server-side code added to NewSbWeb.aspx: <% if (HttpContext.Current.Request.Url.Host.ToLower() != "example.com") { %> <wssuc:TemplatePickerControl id="InputFormTemplatePickerControl" runat="server" ShowRootWebOnly="false" /> <% } %> In this case template picker will be hidden for all web applications except "example.com". But may be you just need to hide all templates except one allowed template? In order to do it you can just specify query string parameter "?ID={id}". In this case template picker will show only one site template with specified idBlog - http://sadomovalex.blogspot.com CAML via C# - http://camlex.codeplex.com Graphs visualization in Sharepoint - http://spgraphviz.codeplex.com
Free Windows Admin Tool Kit Click here and download it now
October 28th, 2010 9:11am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics