Forums / General / Is there a "publish-to-date" function?
Fredrik Melsom Klausen
Wednesday 08 September 2004 2:45:54 pm
I need the possibility to set an article to be automatically published/visible on a given date, and to be automatically unpublished/invisible on a given later date. Is this something that is possible to set in the admin interface? I have looked around quite a bit without finding a solution. If it's not, is there any other way? Help would be greatly appreciated :-)Fredrik
Ole Morten Halvorsen
Thursday 09 September 2004 1:18:11 am
Fredrik,
Future publishing is a standard feature in eZ publish. You need to add a datetime attribute to your class(es), create a new workflow with a Wait until date event and add this workflow to a trigger. Make sure you run the runcronjobs.php as a cronjob aswell.
Currently we dont have an unpublish feature, but we are working on it for 3.5. Have a look at the spec here: http://www.ez.no/community/specs/hide_unpublish
Ole M.
Senior Software Engineer - Vision with Technology http://www.visionwt.com http://www.omh.cc http://www.twitter.com/omh eZ Certified Developer http://ez.no/certification/verify/358441 http://ez.no/certification/verify/272578
Marco Zinn
Sunday 21 November 2004 12:57:01 pm
On order to add to the community knowledge: This worked fine for me (for timed publishing). Using a 3.4.4. installation, i created a copy of the article class, added a "datetime" attribute for this. Then i create a new workflow with the "wait until date" event, selected my new class and that new attribute. After saving the class, i assigned this new workflow to the "before publish" trigger. That did the job! Remember, that you need to set up a cronjob for the workflow to "advance".See http://ez.no/ez_publish/documentation/installation/the_cronjob_script for cronjob information.
Marco http://www.hyperroad-design.com