Forums / General / Auto-delete mechanism

Auto-delete mechanism

Author Message

Nebojsa Eric

Friday 19 May 2006 1:48:40 am

Does anyone have a clue how to make some sort of a mechanism that will trigger every day to delete postings of the specified section of the site older then a current day? Tnx.

Kristof Coomans

Friday 19 May 2006 4:09:59 am

Hi Eric

You can write a cronjob script to do this. I think there are no contributions yet with the same purpose.

There is however a cronjob script included with eZ publish (cronjobs/unpublish.php) to remove content objects based on the specified time in an attribute with identifier unpublish_date. You can configure it with the UnpublishSettings group in content.ini. It can serve as an example for your own cronjob script.

This forum topic will give you some additional information:
http://ez.no/community/forum/general/display_article_only_for_a_limited_period_of_time/

independent eZ Publish developer and service provider | http://blog.coomanskristof.be | http://ezpedia.org