This project is read-only.

Blog Archives Not Working If Assigned Blog Is Set As Home Page

Topics: General, Troubleshooting
Apr 18, 2011 at 8:07 PM
Edited Apr 19, 2011 at 12:37 AM

The Blog Archives Widget appears to be not working if the assigned blog for the Archives is also assigned as the Home Page.

When debugging _blogService.Get(path) returns null when it is the Home Page. Otherwise it works if it is not the Home Page or even if one of its posts is set as the Home Page.

Apr 19, 2011 at 4:01 AM

Assuming it works like the Recent Posts Widget it appears that the BlogSlug in the Orchard_Blogs_BlogArchivesPartRecord table is not being set to NULL when the blog is set as the Home Page. This seems to be what happens in the Orchard_Blogs_RecentBlogPostsPartRecord table. Setting this value to NULL instead of the Blog Name makes the Archive appear.