Publish on date?

Author Message

Marco Zinn

Saturday 20 November 2004 5:16:59 am

Hi,
in ez2, you could publish/unpublish articles by date.
I'm looking for a way to _publish_ articles, based on a date. This will be an "online christmas calender", where we want to publish one article each day at midnight ;) Last year, this was done in ez2 and worked fine.

Is there a way to do this in ez 3.4? The only things, that i found, were "publish/unpublish" triggers in the workflow section (won't help me) and the "unpublish" workflow, which may be a base code for creating a publish cronjob.

The "not yet published" articles could be drafts, which will be published at one (common) partent folder, or they may be published at some other (not accessible) node and moved to the "public" node.

Any comment is welcome, as 01.12 is coming near ;)

Marco
http://www.hyperroad-design.com

Bruce Morrison

Saturday 20 November 2004 11:46:15 pm

Seems to be a embargo (publish on date) feature
http://ez.no/community/forum/general/is_there_a_publish_to_date_function

And an unpublish feature
http://ez.no/community/forum/general/unpublish_event_in_ez_3_3_missing

You would just have to run the cronjon at midnight

Hope this helps
Cheers
Bruce

My Blog: http://www.stuffandcontent.com/
Follow me on twitter: http://twitter.com/brucemorrison
Consolidated eZ Publish Feed : http://friendfeed.com/rooms/ez-publish

Marco Zinn

Sunday 21 November 2004 12:58:50 pm

Thanks, Bruce. The first link helped me to get it working.
Btw, you can run your cronjob every hour, as the "wait until date" event seems to work perfectly, even with "datetime" attributes.
So, you can have articles publish at almost any time, as long as your cronjob is called frequently enough ;)

Marco
http://www.hyperroad-design.com

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

eZ debug

Timing: Jan 18 2025 19:05:32
Script start
Timing: Jan 18 2025 19:05:32
Module start 'layout'
Timing: Jan 18 2025 19:05:32
Module start 'content'
Timing: Jan 18 2025 19:05:33
Module end 'content'
Timing: Jan 18 2025 19:05:33
Script end

Main resources:

Total runtime0.5810 sec
Peak memory usage4,096.0000 KB
Database Queries57

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0064 588.9141152.6094
Module start 'layout' 0.00650.0055 741.523439.3984
Module start 'content' 0.01200.5671 780.9219547.2344
Module end 'content' 0.57910.0018 1,328.156312.1953
Script end 0.5809  1,340.3516 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00340.5926160.0002
Check MTime0.00160.2740160.0001
Mysql Total
Database connection0.00130.224310.0013
Mysqli_queries0.523790.1426570.0092
Looping result0.00160.2809550.0000
Template Total0.525890.520.2629
Template load0.00240.405720.0012
Template processing0.523590.100120.2617
Template load and register function0.00010.021010.0001
states
state_id_array0.00300.520710.0030
state_identifier_array0.00100.172120.0005
Override
Cache load0.00200.3455250.0001
Sytem overhead
Fetch class attribute can translate value0.00070.127020.0004
Fetch class attribute name0.00120.203850.0002
XML
Image XML parsing0.00110.192920.0006
class_abstraction
Instantiating content class attribute0.00000.002160.0000
General
dbfile0.00210.3605220.0001
String conversion0.00000.001840.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
3content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
5content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
5content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 18
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs