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're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

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


740 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