Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Blog Module /

Discuss the Blog Module.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

Blog redirect to homepage and display last months blog posts


Go to End


1202 Views

Avatar
traineetechy

Community Member, 3 Posts

13 June 2012 at 9:37am

Hi guys,

Just wondering if anyone can help with this problem I am having, I have redirected my homepage to the blog module, I have posts dating back several months and in the CMS have already chosen to display them monthly, so I would like to display the most recent months blog posts on the homepage as it were.

I have already added a sidebar where a user can select to view a previous months blog posts, I just cannot seem to get the latest blog posts displaying. Currently the homepage shows 'no blog entries' as it is redirected to the blog no problem but I cant figure out the code required to say display last 1 months posts, similarly to what I have already set up in the blog options in the CMS.

Any help or advise would be much appreciated as I have been stuck for quite a while on this one now.

Cheers

Aaron