Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

I'm trying to change the date format of blog posts and comments in Post.aspx, but having trouble. What I want to do is change the $thisNode/@PublishedDate value with $thisNode/@PublishedDate.MonthDayOnly, but I cannot find where to do that.

I've tried editing blog/Lists/Posts/Post.aspx with SharePoint designer, but because it doesn't render the actual blog post (i.e. there's no ?ID=2 in the design view of SPD), I cannot select the date to edit the formula, like I can with the blog home page.

I also tried editing blog.xsl in my hive, but nothing changes on the blog post view (unsurprisingly?)

Can anyone point me in the right direction so I can locate and change the formula for the Post.aspx post view and comment views?

share|improve this question
add comment

1 Answer

up vote 2 down vote accepted

See if this helps you: http://www.c-sharpcorner.com/uploadfile/Roji.Joy/customize-sharepoint-2010-blog-post/

It basically consists of:

  1. Make a copy of the blog.xsl from hive.

  2. Make your changes to the copy.

  3. Edit your Posts.aspx in SPD.

  4. Modify the XslLink property of the Posts webpart to point to your custom blog.xsl

share|improve this answer
1  
Thanks for the link. Between that and another link I found, I was able to work out where and how to edit the xsl (my link: onlinecoder.blogspot.com/2011/12/…) –  QMKevin Jun 26 '12 at 16:02
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.