Publish/Delete of articles on date

Author Message

John Smith

Monday 21 March 2005 7:45:58 am

I need the possibility to set an article to be automatically published on a given date, and to be automatically unpublished/delete on a given later date. Is this something that is possible to set in the admin interface of ez version 3.5.1. If it's not, is there any other way?

Thanks in advance.

Cheers

Balazs Halasy

Tuesday 22 March 2005 1:16:20 am

Hi,

Yes, this is possible. You will have to set up a workflow with an event (I do not remember the name of the event, but you will see it, I'm sure) + set up a trigger to initiate it before publish...

Allman

John Smith

Tuesday 22 March 2005 1:30:18 am

hi halasy,

Thanks for your kind reply. I know publish on date is possible by the wait until date event triggered before the content publish. Thats working. Kindly let me know how to do unpublish part. I cannot find unpublish event for this part.

cheers

Balazs Halasy

Tuesday 22 March 2005 4:42:43 am

Hi again,

Due to the nature of eZ publish, it is not possible to unpublish a published object. However, it is possible to hide (and thus "unpublish") objects. There is currently no workflow event that does this, but you can easily create one yourself if you are familiar with PHP & basic eZ internal coding.

Allman

Lex 007

Thursday 24 March 2005 2:01:06 am

Hi,

This page could be usefull for you :

http://www.ez.no/ez_publish/documentation/development/extensions/workflow_events/unpublish

Combining this "unpublish" workflow event with the "wait until date" event should do the job.

Lex

John Smith

Thursday 24 March 2005 2:12:54 am

Thanks for your kind reply.

I tried it but it is not working.

You wrote "Combining this "unpublish" workflow event with the "wait until date" event should do the job."

What it means?

cheers

Lex 007

Thursday 24 March 2005 2:32:39 am

I haven't tried it so there is no garantee that it will work "as is" ;-)

- modify the article class with a date attribute (the value of this date should be the date it is published)

- follow the explainations from the link to create a "unpublish" workflow event

- create a new workflow called "Unpublish Workflow" with a "wait until date" workflow event and after that a "unpublish" workflow

- assign this workflow to the trigger "before publish"

- use the cronjob to run the workflow periodically

Hope it helps

Christiane Kloss

Thursday 24 March 2005 3:00:23 am

Hi,

unpublish is not a workflow anymore...

http://ez.no/community/forum/developer/unpublish_by_date/re_unpublish_by_date__2

Greetings
Christiane

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.