Blog Month Post Template showing last months path for content

Taun Brown asked on June 9, 2014 08:36

We just made a blog on our site and the issue I have is that each time a new month of blogs gets created it Kentico creates a blog month page for that month (which is great) but the path for the content is always for the past month. Is there a snip-it of code I can put in the path section that will have the blog month only show content for that month's of blogs without having to change the path each month?

I am on Kentico 9 now and I still have not been able to get this to work, unless I set each path for each month with an Ad-Hoc template

Recent Answers


Brenden Kehren answered on June 9, 2014 08:44

What I typically do is have a repeater for all the posts ordered by newest and only show for "cms.blog and cms.blogpost" doc types. This is typically the out of the box one on the "Blog" template. Then I'll place another repeater on the template and set it to only show for "cms.blogmonth" doc types. You can leave your path blank as it will automatically pick up all doc types below in the tree. Then set a transformation and such and you'll be set.

0 votesVote for this answer Mark as a Correct answer

Steve Pine answered on March 31, 2015 17:35

Brenden: I have the same issue...I think the question is does the Repeater webpart have a condition [(ORDER BY expression:) or WHERE] that will have the Month Repeater filter out the posts by each month instead of manually having to change the Path each month.

thanks for your help!

0 votesVote for this answer Mark as a Correct answer

'dipo Majekodunmi answered on June 5, 2015 15:30

Thanks Brenden, I was about to raise a support ticket and glad I Googled the issue first. Works like a charm.

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.