Forums / General / Publish/Delete of articles on date

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

eZ debug

Timing: Jan 30 2025 21:43:26
Script start
Timing: Jan 30 2025 21:43:26
Module start 'content'
Timing: Jan 30 2025 21:43:26
Module end 'content'
Timing: Jan 30 2025 21:43:26
Script end

Main resources:

Total runtime0.3490 sec
Peak memory usage8,192.0000 KB
Database Queries141

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0102 587.9297370.2969
Module start 'content' 0.01020.0154 958.22661,009.5000
Module end 'content' 0.02560.3233 1,967.72663,897.5859
Script end 0.3489  5,865.3125 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00471.3417200.0002
Check MTime0.00140.3915200.0001
Mysql Total
Database connection0.00090.257310.0009
Mysqli_queries0.241169.06951410.0017
Looping result0.00160.45621390.0000
Template Total0.322692.410.3226
Template load0.00110.308610.0011
Template processing0.321592.124510.3215
Override
Cache load0.00070.200910.0007
Sytem overhead
Fetch class attribute can translate value0.00210.591110.0021
XML
Image XML parsing0.00040.106310.0004
General
dbfile0.00892.5535200.0004
String conversion0.00000.002630.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0002 secs