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

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

Customizing blog. "Save as template" produces broken template

Posted By:      Posted Date: October 16, 2010    Points: 0   Category :SharePoint


I have a problem in such simple scenario:

1. Create new site with BLOG template

2. Save this site as template, eg BLOG_V2

3. Create new site from new template

4. Try to make new template from new site - I get "Error exporting the list named "Posts" at the URL: Lists/Posts"

And I also see that list "Posts" is broken in strange way.

Powershell script:

$site = get-SpSite .....

$web = $site.OpenWeb(.....)

$web.Lists |Select Title, DefaultViewUrl

PS C:\Users\AYuryshev> $web.Lists |Select Title, DefaultViewUrl

Title                                   DefaultViewUrl
-----                                   --------------
Categories                              /blog_v3_2/Lists/Categories/AllCateg...
Comments          &

View Complete Post

More Related Resource Links

Customizing the SharePoint 2010 Blog Template


I want to apply branding to a sharepoint 2010 blog site which is a sub site of our internet. I'm trying to achieve this by creating a custom blog site template based on the original blog site template. So I followed the following blog post.


And I got a copy of the blog template files from "C:\...\14\TEMPLATE\SiteTemplates\blog", modified the files and put in to the "SiteTemplates\<custom template name>" folder.

I can see a new site template has been created but every time when I create a web site based on my custom template it uses the original blog template files for provisioning (for ex: default.aspx).

Is this the correct way to achieve this? Please let me know if I'm doing sth wrong here.

Thanks in advance.


More Windows 2000 UI Goodies: Extending Explorer Views by Customizing Hypertext Template Files


The Web-style interface is the default Explorer folder view for the Desktop Update in Windows 2000. The Desktop Update uses HTML-based hypertext templates to create the Web view, and you can customize these templates to include your own views and commands. This article shows you how the Explorer Web view works and how to build your own custom templates for it. You'll see how to add a command prompt and task buttons to a new folder view using HTML, script, and ActiveX controls. The shell object model and thumbnail shell extensions are also examined, then used to build a simple icon viewer for Explorer.

Dino Esposito

MSDN Magazine June 2000

Blog template and security

I created a blog template with SP 2010. Anonymous access is enabled. Home page is accessible by all users but when the user clicks on a post title, security window pops up and asks for credentials. In short, post details are not visible to anonymous users. Anyone knows why?

Create site template and adding subsite using site template is broken in sharepoint 2010

I am trying to create a site template base on an existing site and try to use the new site template to generate other sub-sites.  It sounds simple and the code is not that difficult to follow; however, Microsoft has made it impossible to accomplish by having a bug in their template creation process.   //Generate web template from existing website using (SPSite site = new SPSite("http://localhost")) { SPWeb web = site.OpenWeb("/barrington/accounting"); web.SaveAsTemplate("NewDepartmentTemplate", "NewDepartmentTemplate", "NewDepartmentTemplate", true); }   //Generate sub site using the new template using (SPSite site = new SPSite("http://localhost")) { SPWeb web = site.OpenWeb("/barrington/accounting"); SPWebTemplate tp = null; foreach (SPWebTemplate wt in web.GetAvailableWebTemplates((uint)1033)) { if (wt.Title == "NewDepartmentTemplate") { tp = wt; break; } } if (tp != null) { SPWeb newWeb = web.Webs.Add("NewDepartment", "NewDepartment", "NewDepartment", (uint)1033, tp, false, false); } } Error: Microsoft.SharePoint.SPException was unhandled   Message=The content type name '$Resources:_FeatureId367b94a9-4a15-42ba-b4a2-32420363e018,DataSourceContentTypeName;' cannot contain: \  / : * ? " # % < > { } | ~ & , two consecutive per

Save as template button is disabled



I want to save a site as template so I can create a new site based on this template.
In SP2007 this was easy by opening site settings > site actions > save as template
In SP2010 this link is missing, and in SharePoint Designer the button in the ribbon is greyed out.

All of the sites in SharePoint show this behavior, I cannot save any of my sites as template (the link is not there in SharePoint, and in SPD the button is disabled).
Do I need to enable some feature in SP2010 first in order to use this functionality ?

Blog Template Customization



I just created a new site by selecting Blog template. The blog is created. Now i want to modify it as per my needs, For example i wanted to add a field in comments column "URL", I added the field in list and its done.

Now the point where I am stuck is, i want to bring that URL behind the comment maker's name. just like in all other blogs!

As I see the post.aspx page (/List/Posts/Post.aspx) It has three webparts, 1. which displays posts, 2. which displays comments, 3. which displays comments form.

So how may I modify the second webpart which displays Comments ?


Save as template kill the web part connection



I have a Sharepoint web site and I would like to save it as a template in order to create several site with the same structure and the same web pages.

On some of my web part pages I have some webpart connected to each other (mostly BDC List web part and BDC related list web part). When I save the site as a template and create a new site based on this template most of the connection are not present in the new site. Does anyone know what is the problem and how to solve it? I really need this to work as the site template will contains tens of pages with those connection and we will have to create tens of site with that template so manually recreating the connection is not possible.


Thank you for your help.

"Save Template as" SharePoint 2010 OOB Blog Template



I create a template based on the SharePoint 2010 OOB blog template, and it works fine.

When I create a site based on that template, the Posts list default view is 5 times!

I found this link, but the problem is not resolved.



Template using relative URL is broken when using the Offline Client



I am using SearchServerExpress 2010. I am having some content types to point at a template library in the same site, the idea is that whenever those templates reach a major version, they are automatically used as the newest template when creating new documents.

Basically I have a site content type pointing at a URL like this one: "/sites/sales/Templates Library/Template1.pptx". Then another library (let's call it 'MyLibrary') in the same site is using this content type, and it works fine. The problem is that when I add the site (sales) to a sharepoint workspace and try to create a new document by using that template, then the URL is built in another way which doesn't work. The URL it looks for is "hxxp://sharepoint.contoso.com/sites/sales/MyLibrary/sites/sales/Templates Library/Template1.pptx", instead of what should be "hxxp://sharepoint.contoso.com/sites/sales/Templates Library/Template1.pptx" as it is in the browser.

Is this a bug or am I doing something wrong?


Enabling attachments with DataFormWebPart on Blog template

Hey there

I'm running SP 2007 with hotfix 953749 installed.

What I'm trying to do is enable file attachments in NewForm.aspx and EditForm.aspx on a Blog site template.

I followed the instructions in http://support.microsoft.com/kb/953271 and yet the attachment field is not shown.

Please your guide.

Thank you.

The Free Barcode Creator produces barcode images one at a time, and allows easy saving to a file or

The Free Barcode Creator produces barcode images one at a time, and allows easy saving to a file or pasting into an application. 2D versions are also available:

Dropdown Event (Template Field)



I have grid view control that includes a dropdown control in a template field.

I wish to execute some code when the value is changed in the dropdown list.  Can't figure out how to capture this event though?

Any suggestions?

Customizing the UI around the Filters


I have started working on a new project and thought it would be a great idea to dig into the latest version of the Dynamic Data framework that shipped with VS2010.  For the most part, I am impressed, it seems to be pretty easy to extend and create a rich and flexibile UI -- at least that is what I thought until I got to working on a better layout for the filters.

The situation is this:

I have a table with 25 columns and I need to display around 10 different filters (basically and interactive report) -- the filters are of various types.

The problem:

How in the world do I custom the UI layout of the filters.  It seems that with the latest QueryFilterRepeater control we have been left with almost nothing to work with (outside of turning filters on/off and setting the FilterUIHint).  What if I wanted to wrap all of the filters in an expand/collapse region and then inside of that have then sitting in a table of no more than 4 columns (so with 10 filters I wold have 3 rows). 

I have tried extending the QueryFilterRepeater but it seems like there is nothing in that class that we can work with (the data binding events are not even used).

Am I missing something, or am I just out of luck right now?

Empty template support for GridView


Just add the following to support the empty text in the GridView.


protected override void RenderContents(HtmlTextWriter writer)
	if (Extender.AdapterEnabled)
		GridView gridView = Control as GridView;
		if (gridView != null)
			if ((gridView.Rows.Count == 0) && !String.IsNullOrEmpty(gridView.EmptyDataText))
				writer.WriteAttribute("class", "AspNet-GridView-Empty");

Example of tag to be added to the css
.NiceGridView .AspNet-GridView div.AspNet-GridView-Empty
	border-width: 1px;
	border-style: solid;
	border-color: #

Extreme ASP.NET: Text Template Transformation Toolkit and ASP.NET MVC


The Visual Studio T4 code generation engine lets you parse an input file and transform it into an output file. We give you a basic introduction to T4 templates and show you how ASP.NET MVC uses this technology.

Scott Allen

MSDN Magazine January 2010

Team System: Customizing Work Items


Team Foundation Server's work iIem tracking system provides a number of advanced customization options.This article explores custom control support that lets you link to date, enhance the user experience, present data, and more.

Brian A. Randell

MSDN Magazine October 2009

Foundations: Customizing the New WPF Calendar Controls


Late last year Microsoft released Calendar and DatePicker controls for WPF in the WPF Toolkit. We'll show you how they work, and how you can customize them.

Charles Petzold

MSDN Magazine June 2009

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