When creating content for the web and other media, it’s a common practice to prepare pieces in advance and publish them on a specific date: news articles, business reports, etc., may include information not to be disclosed before that date. Sometimes, such scheduled content additionally needs to be deactivated after some time, e.g. time-limited offers.
With Scrivito, scheduling and expiring pages can be achieved with the help of date
attributes for capturing a validity period. In this tutorial, we are going to add two such attributes, validFrom
and validUntil
, to the page types of the Example App and illustrate how to take them into account when rendering pages.