.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
david stephan
Gaurav Pal
Post New Web Links

Publishing site template saved using /_layouts/savetmpl.aspx

Posted By:      Posted Date: August 31, 2010    Points: 0   Category :SharePoint
A trick we used in MOSS 2007 doesn't seem to work in SharePoint 2010 although it seemed to work for someone who asked the same question in this forum.  We know publishing site do not have the "Save as site template" as an option in the site settings so we used <site>/_layouts/savetmpl.aspx to save the site template.  Unfortunately, new site created using the saved template is throwing a 404 error.  And the site was actually created (can see in View All Site Content).  We need to be able to easily create sub-sites with the same look and feel and set of document libraries/lists.  Any advice? 

View Complete Post

More Related Resource Links

Adding a custom control to the SharePoint 2010 Team Site Wiki Page Template ( wkpstd.aspx ) programm

Topic This is maybe my last post about the Team Site Wiki Page customization with the aim of exceeding its limitations. This time we are going to customize the unique template ( wkpstd.aspx) by replacing the control that renders the editable content by a custom one. In this post example, we will take advantage of the use of this custom control to render not editable additional contents, for instance, a header and a footer that could be the same for a specific Wiki Page Library. Of course, we are not going to really customize the template, but we are going to use a delegate control to replace the control at runtime. Here are the screen shots of the result: We can see a non editable Header and Footer on the Team Site Wiki Page In edit mode these additional contents are not rendered, but we can add new content as usual And of course, after having saved the page, the new content is rendered wtih the non editable Header and Footer. Steps required   If you look at the Team Site Wiki Page template, wkpstd.aspx, you can see the control that is rendering the editable content/ <SharePoint:EmbeddedFormField ID="WikiField" FieldName="WikiField" ControlMode="Display" runat="server" /> We are first going to create a custom EmbeddedFormField control Then, we are going to use a delegate control to replace the native EmbeddedFor

Saving site as an template, and, creating new site with the saved template.



What is the process to save site as an template and create new site collection using the saved template?



Publishing Portal Missing Team Site Template



I created a new site collection and set the root site as a publishing portal.  I then went into "manage site features" under "Site Actions" and activated the "Team Collaboration Lists" feature.  However I cannot find the "Team Site" template when I try to create a new site.  Is there a feature I'm missing? 



Activating Publishing Feature for Team Site Template in SharePoint 2010


A new site collection has been created and uses SharePoint 2010 team site template. How can you activate the publishing feature on it?


I have activated the publishing feature at site collection and site level but I still can edit pages etc without requiring check out and approval/publishing. There are probably settings I need to activate on other doc libraries but I wanted to know the best practice for this scenario and how to configure it.



In Moss 2007 i have to remove the Site Template tab which is available on "newsbweb.aspx"



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


Pankaj Pawar


Error creating site template for publishing site



I am trying to create site template for publishing site in SharePoint 2010.

I have a publishing site and have created site template for the same using _layouts/savetmpl.aspx.

But when I tried to create site from that template in the same site collection it throws error, actually it creates the site but not able to set the home page as /pages/default.aspx. If I edit the url as http://<new site created>/pages/default.aspx the site is working fine.

The onet.aml for the site template is: 


<Project Title="AsTestPckSiteTemplate" Revision="0" UIVersion="4" SiteLogoUrl="" SiteLogoDescription="" xmlns="http://schemas.microsoft.com/sharepoint/">


<!--<NavBar Name="SharePoint Top Navbar" Url="/poc/infonet/Depts/AsTestNewSite" ID="1002" />-->

    <NavBar Name="SharePoint Top Navbar" ID="1002" />



<Configuration ID="2" Name="BLANKINTERNET" MasterUrl="_catalogs/masterpage/nightandday.master" ThemedCssFolderUrl="/poc/infonet/_catalogs/theme/Themed/6941FBA2">


<!--PublishingPrerequisites Feature-->

Using List templates - saved template has no site definition id or feature id - does not appear in S

I have a Record Centre site in SharePoint Server 2010 and have created a number of record libraries. Due to a reorganisation, I need to split my main record library up into about 20 separate libraries, so decided to use the list template as a means to create the new libraries with the same content types, views and workflows.

Used one of my libraries with no content and did Library Settings - Save document library as template and gave a name. Seemed to save OK to the List template gallery.

When I go to Site Actions - More Options the new template does not appear

Have done a fair bit of searching and I think the problem is that the .stp does not seem to have any site definition id and no means to add one.

Have enabled the SharePoint Server Publishing feature at the site level, as suggested by another post, but still has not resolved the problem.

Would value any ideas or insight. Thanks

Using a saved Site Template on a new site - 2010


I created a new site, customized the template to include the web parts and layout that I wanted.  At that point, I saved the template and exported it to my desktop.  I then went into my Administration Center and created a new sharepoint site.  It was created with a default blank layout and I now want to apply my saved template to utilize the layout and webparts I finalized for my first site.  When I go to "Site Template Gallery" I can upload the template from my desktop, which I did so now it is showing in the list; however, I don't see any way to apply it to the site.

I have full admin rights and am using Sharepoint online 2010

I'm going to be rolling out dozens of the same sites, using the same template and just tweaking the titles and content so this is a major need...anyone have any input on how to do this?

workflows when saving site as template with content

I have have a MOSS 2007 site on a production server with custom workflows.  I saved the site as a template with content and used the template to create a sibling site.  I am testing it and the workflows aren't working.  Is this to be expected? I have read that workflow don't work when saving between development and production, but I can't find anything that addresses both sites being on production. Will I need to recreate the custom workflows by hand? 

Is there a way to update the template of a site?


I am looking for a best practice for managing and applying site design changes.

For instance, in another platform, I could release a site for testing or production use, so content would be added.  At some later date, a change* to the design would be needed and I would take a copy of the design only, make the change and then apply the updated design to the existing site. Content would be maintained but the new design changes would be applied. 

      *A change might mean creating new functionality on an existing element, adding new elements or changing an existing element.

How best should this be done in WSS?

Thank you in advance!

Publishing SharePoint Site


I have published a sharepoint website that I created but I now have the following problem:

  • from the internal network, everything works fine..
  • from the external network (via web):

  1. the People Picker web part does not work (error in WebForm_DoCallBack)
  2. The "assigned to" field is empty, but when I see the source code, the users are there. They are just not displayed.
Can anyone help me. Thanks in advance..

calling a web service on a remote server from a ASPX page (web site project VS2005)

HI,I am maintaining a web site project in VS2005 and have to call a new web service on a remote server. I've done add web reference, and created the .wsdl and .discomap files in the app_webReference folder.  When I try to create a object representing the web service in the code ( wsnamespace.serviceName ws = new wsnamespce.serviceName(); ) the code wouldn't compile.The web site project is already calling other web services. When I right click on the type representing the web service and "go to definition" it takes me to a proxy class (derived from of course SoapHttpClientProtocol) in the metadata. I think this is what's missing for  the new web service i'm trying to call. Have I missed any steps?Thanks in advance.-me

Navigation settings not applied when site created from template?

Hi, I created a customized site on MOSS and disabled Quick Launch and enabled Tree View on it. But when I create new site from this template it has Quick Launch enabled and Tree View disabled. I downloaded the STP file and looked inside and in the details <Details> ... <EnableTreeView>1</EnableTreeView> <EnableQuickLaunch>0</EnableQuickLaunch> ... </Details> Does anyone have a clue why it does not work correctly? Does this work for you correctly?  

SharePoint 2010 Publishing Site : Operation is not valid due to the current state of the object.

  I think as usual, the new version of SharePoint 2010 has a lot of problems. the below messege appear in a publushing site (FBA) enabled and when I try to access the pages list or even approve a page of accessing the SiteCollectionImages list and ......... etc every link produce the below error. I'm very frustrated with 2010.  Server Error in '/' Application. <nativehr>0x8107058a</nativehr><nativestack></nativestack>Operation is not valid due to the current state of the object. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.Runtime.InteropServices.COMException: <nativehr>0x8107058a</nativehr><nativestack></nativestack>Operation is not valid due to the current state of the object. Source Error: An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. Stack Trace: [COMException (0x8107058a): <nativehr>0x8107058a</nativehr><nativestack></nativestack>Operation is not valid due to the current state of the object.] Microsoft.SharePoint.Library.SPR

How to add List item in search results for anonymous in a publishing site?

Hi all,   For now, results in Library (document set or not) are shown and the link is the binary file. This is ok. But for list, anonymous users can't view results. As logged in I see the items in the AllItems.aspx page. How could I allow this result to be viewed by anonymous users too?      Thank you,   Benoit Pironet

sp2010 - move site template ( or site ) from one site collection to another ?

Is it possible to save a site as a template in site collection A and move it to site collection B ? Can this be done using out of the box functionality through the browser or do I need to use powershell or some other tool ? please advise. thanks and regards, Counie  

how to create site collection by using custom template through programmatically?

hi all, how we can create site collection by using custom template through programmatically? please give me some suggestions. where we need to save this custom template... thanks in advance..
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend