问题
one of our customers is using in their site third party content that must be unavailable after one month because of license restrictions.
in this specific case expiring content will not help because the content is still available on the site and is viewable by anyone who already has its address.
we make a quick research and found an old tutorial by our friend Mikko Ohtamaa (who else?) about Time based workflow transitions and I'm currently checking if dependencies work on latest versions of Plone.
does anybody else has a different approach on how to retract content after expiration date or this is the best one?
回答1:
collective.autopublishing can publish / retract content based on effective/expiration date, or a custom date field. Using a cron or clockserver trigger to search for content to retract or publish. See https://github.com/collective/collective.autopublishing
回答2:
To me this is screaming for a contentrule (really like them) and collective.contentrules.comingsoon claims to be able to do what you want, since of version 1.1 passing the index-parameter is possible. Don't get distracted of the initial naming of the product. I haven't tested this but the authors are well known for good prods. For me for sure. And the latest release is quite fresh, which hints, it was used with newer Plone-versions.
来源:https://stackoverflow.com/questions/20521111/how-to-retract-content-after-expiration-date