Can I edit the Default blog page in SharePoint 2010? Basically I would like to change the sort order of the posts. Currently the default page is sorted by date, is it possible to change it to where it sorts by Category then by Date???? Any pointers will be GREATLY appreciated.
|
Yes, you can change the order. The webpart that displays the posts is just a list view webpart. The trick is this - go to the posts list add a new view, get it sorting the way you want, test. save. go back to your blog homepage edit the page edit the 'posts' webpart's properties select your newly created view in the 'list views' section click OK. Save. done and dusted. However, I will say this - a blog is, traditionally speaking, a linear, over-time view of posted news. Your users may not be expecting yours to sort differently, so consider that in your decision - usability is, of course, paramount. |
|||||||
|
|
This is an old post, but I thought I'd respond anyway. I was unable to get the create-a-new-sorted-view-and-select-it-in-the-webpart-editor trick to work. This simply brings up the new view on the page in a vanilla SharePoint style, rather than bringing up the new view in the semi-fancy default blog styling. What did work is to edit the blog page in Sharepoint Designer, and then change the OrderBy clause to match your chosen column. In your case, I this is the CategoryWithLink field. Search for XsltListViewWebPart, and make sure the description reads "Use the Posts list for posts in this blog", and then scroll down to the XmlDefinition tag. Once there, search for OrderBy, and change the first field to your chosen one. The example below shows how to sort a blog by a custom column called SuggestionRating, rather than by PublishedDate, which is the default. In this example, note that I had to add SuggestionRating to the ViewFields node in order to get this column to appear.
|
|||
|
|