.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

Blog Template Customization

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


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 ?


View Complete Post

More Related Resource Links

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?

Customizing blog. "Save as template" produces broken template



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          &

"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.



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.


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.

Dynamic page customization in WebForms



I am developing an ASP.NET Webforms application for job advertisements. The application is hosted on my own server and enables registrated users to publish job advertisements with the possibility to submit job applications directly from web. The application essentially consists of two parts: job advertisements and job applications sub-apps. 

The job advertisement application uses RESTful approach, implemented as ASP.NET routing and makes no use of different state variables (like viewstate). I provide custom layout of job advertisement webpage for every client using XML serialization of my internal JobOffer class and using XML ASP.NET control with custom XSLT transformation sheet plus CSS to render the custom design. It is all fine and works perfectly.

The second (job applications) part provides users with a custom webform, which is partically dependent upon the original advertisement (regarding the minimal education level, eligible citizenship or work permissions, licences etc.) and can be tweacked using custom CSS. There is, however, no possibility for custom layout of the elements on this page, which provides a multi-tabbed navigation for different parts of job application. Hence the question 1 (see below).

The application is not ready yet, but I intend to keep it hosted on my own server and provide just some ki

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?

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: Team Build 2008 Customization


See how to modify the default behavior of Team Build, extend your builds with custom tasks, and make use of the enhancements in Team Build 2008 SP1.

Brian A. Randell

MSDN Magazine March 2009

Toolbox: C# JavaScript, Eric Lippert's Blog, And More


Writing your JavaScript code in C# and having it converted, Eric Lippert's programming blog, and reading up on T-SQL 2008.

Scott Mitchell

MSDN Magazine January 2009

Toolbox: Static Analysis Tools For .NET, Matt Berseth's Blog


This month we take a look at FxCop and other tools that enforce your design rules, along with jQuery.

Scott Mitchell

MSDN Magazine December 2008

Toolbox: Online Scheduling, Jeff Smith's SQL Blog, Easy Regular Expressions, And More


This month Scott looks at improving development skills, writing regular expressions, a web scheduling control and a SQL tips blog.

Scott Mitchell

MSDN Magazine November 2008

Toolbox: Realistic Test Data, Dare Obasanjo's Blog, Color-Coding Tools, and More


This month Scott shows how to generate realistic test data, visits Dare Obasanjo's blog, and demonstrates color coding code for better readability.

Scott Mitchell

MSDN Magazine October 2008

Toolbox: Serializing objects, Scott Allen's blog, Site Performance, and more


Serialize and Deserialize Fixed Length and Delimited Files, Scott Allen's blog, inspecting Web Pages, and more.

Scott Mitchell

MSDN Magazine August 2008

Toolbox: Easy Wiki Hosting, Scott Hanselman's blog, and Snagging Screens


Host a wiki the easy way, get the screen shots you need and mark them up, and read about LINQ this month in Toolbox.

Scott Mitchell

MSDN Magazine July 2008

Windows with C++: Windows Template Library 8.0


Kenny Kerr takes a look at Windows Template Library (WTL) support for new Windows Vista control enhancements, including task dialogs, Aero wizards, and open file dialogs.

Kenny Kerr

MSDN Magazine December 2007

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