This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.
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!
I think i figured it out with the help of this. https://octobercms.com/forum/post/running-php-code-on-pages
1-2 of 2