How to retract content after expiration date

橙三吉。 提交于 2019-11-30 09:37:40

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!