Hi,
I'm looking for the best way to have a block visible only during a specified date range. The use case would be posting a time-bound alert message on a site.
For example, our admin Alice wants to notify users that Friday's meeting is canceled. She wants the message to be visible between tomorrow (Tuesday) and Friday, but not before or after. Alice creates a block containing the appropriate message and makes it visible on the site.
Bob (our site user) goes to the site today and is not able to see the meeting notice. If Bob visits between Tuesday and Friday, he can see it. If Bob visits on Saturday or afterward, he cannot see the message.
Any thoughts on how to best achieve this?
Thanks,
Ed
Comments
Make a content type called
Make a content type called "message" and make a block view that lists the titles for all published messages.
If you add the schedule module, people can then schedule when messages are published and unpublished (note the default state for messages in this case should be unpublished. Also you need cron).
That solution is just what I
That solution is just what I was after -- thank you!