Just installed and set up the package into my website but when I am creating and publishing posts they are appearing in the reverse order (so oldest posts at the top of the list)
Hi Luke / guys... Not sure if anybody saw this post initially but I am having difficulties with displaying the posts in the correct order on the main Blog List. at present they are displaying in the opposite order so oldest posts are being displayed first and then the newer posts are below!!
Hi Brian, I had the same problem a while back. I was able to change the order of the posts by modifying the SmartListPosts.cshtml partial view. I changed line 56 to:
Sorry for the late reply, I've been away on paternity leave for a while. I've just updated smart blog to order posts newest first, I'll upload the new version today. Thank you for taking the time to report this and find a fix.
Posts in the wrong order
Hi guys,
Just installed and set up the package into my website but when I am creating and publishing posts they are appearing in the reverse order (so oldest posts at the top of the list)
Any idea why?
Hi Luke / guys... Not sure if anybody saw this post initially but I am having difficulties with displaying the posts in the correct order on the main Blog List. at present they are displaying in the opposite order so oldest posts are being displayed first and then the newer posts are below!!
Any ideas why and how to resolve?
Cheers
Hi Brian, I had the same problem a while back. I was able to change the order of the posts by modifying the SmartListPosts.cshtml partial view. I changed line 56 to:
results = results.Where(y => y.DocumentTypeAlias == "SmartBlogPost").OrderBy("smartBlogDate descending").ToList();
Hope that helps. :)
Hi Alex & Brian,
Sorry for the late reply, I've been away on paternity leave for a while. I've just updated smart blog to order posts newest first, I'll upload the new version today. Thank you for taking the time to report this and find a fix.
Regards, Luke
Hi Alex,
You offically ROCK! it is always the simplest of things that fix these issues eh.
Luke, good to hear your life is busy with much more important things, I hope all is well chap and well done on creating a cracking Blog package
Just found this - thanks for the advice on how to change the order of the posts. Have been struggling with this but now all sorted! :)
is working on a reply...