Forums / General / Is there a "publish-to-date" function?

Is there a "publish-to-date" function?

Author Message

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

eZ debug

Timing: Jan 20 2025 16:53:38
Script start
Timing: Jan 20 2025 16:53:38
Module start 'content'
Timing: Jan 20 2025 16:53:38
Module end 'content'
Timing: Jan 20 2025 16:53:38
Script end

Main resources:

Total runtime0.2432 sec
Peak memory usage2,048.0000 KB
Database Queries141

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0054 587.7266180.8359
Module start 'content' 0.00540.0075 768.562593.8516
Module end 'content' 0.01290.2302 862.4141522.2031
Script end 0.2431  1,384.6172 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00321.3286200.0002
Check MTime0.00130.5148200.0001
Mysql Total
Database connection0.00070.291510.0007
Mysqli_queries0.195680.42061410.0014
Looping result0.00110.45451390.0000
Template Total0.229994.510.2299
Template load0.00090.365610.0009
Template processing0.229094.171610.2290
Override
Cache load0.00060.265210.0006
Sytem overhead
Fetch class attribute can translate value0.00060.263310.0006
XML
Image XML parsing0.00020.101610.0002
General
dbfile0.01094.4990200.0005
String conversion0.00000.002530.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.0001 secs