Display Content Based on Day & Time?

Permalink
Is there a way I can display a piece of content based on the day and hour of day?

It's for a radio station website. I want to be able to display which person is currently on-air. So Monday - Friday, 6am-9am would need to display the morning show. 9am-2pm would be the midday show, etc.

Is there a built in way to do this? Or an add-on that would work?

leinteractive
 
jordanlev replied on at Permalink Reply
jordanlev
There is no built-in way to do this, and I'm not aware of an addon in the marketplace that does it (although you can try the Data Display addon --http://www.concrete5.org/marketplace/addons/data-display/... -- I'm not sure if it has time-based displays though).

If you know how to code, you could build a block that does this. You'd want a database table with "start time", "end time", and "person", then the edit block interface would need fields for each time span, then the display would get the current time and lookup the database record that corresponds to the current time.