This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.

ruslan6
ruslan6

I would like my homepage to display different content based on time. For example from 7.00 am to 12.00 am, display <p>It's early morning!</p> in some div on the homepage.
The only half broken way I have gotten this to work is to make an if statement inside the php section which echoes a string with my content. The reason why this is bad is that it echoes to the top of the page even before the layouts are rendered. I would like a way for it to be rendered like a partial in a specific div and not in the begging of the page. Thanks!

ruslan6

1-2 of 2

You cannot edit posts or make replies: the forum has moved to talk.octobercms.com.