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

Show future blog posts


Go to End


2 Posts   893 Views

Avatar
SilverstripeLearner

Community Member, 15 Posts

10 April 2017 at 8:31pm

Hello,

If I make a blog post and set it's date to someday in the future, it will only be posted on that date. I want it to have a future date but be displayed to public area because I'm using the Blog module as Events so visitors need to be able to see Upcoming Events.

Avatar
SilverstripeLearner

Community Member, 15 Posts

13 April 2017 at 8:36pm

In case someone else in wondering, just remove the following line from BlogFilter.php & BlogPostFilter.php

->where(sprintf('"PublishDate" < \'%s\'', Convert::raw2sql(SS_Datetime::now())));