4

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?

1 Answer 1

2

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

1

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

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