Overriding the pubdate and delayed publication

Author Message

Stephen Paschall

Monday 11 December 2006 12:42:15 pm

We'd love to deploy eZPublish as our primary CMS, but we need two things:

1.) As quite a bit of the content we post is archival, we need to be able to easily override the publication date in the administrative interface.

2.) As a news organization, we need to be able to embargo content until a scheduled date and time, and eZ does not appear to have any native support for delayed publication at this time.

I'm really surprised eZPub v3 doesn't have ready support for these features, as eZPub 2.x most certainly did. I'm sure versioning makes it quite a bit more complex a problem, but surely it can be done.

I'd love to be able to write an extension to solve the problem, but I simply don't know the system well enough to do so yet.

Suggestions?

Jeroen Sangers

Tuesday 12 December 2006 2:39:27 am

1. If I understand you correctly, you want to set the publication date on archived objects and I assume that you are importing your current site into eZ Publish. If that is the case, you might want to consider doing an automated import using the API instead of copy/pasting everything in the admin interface.

2. This is very easy to do. First, you will have to add a date/time field to your object for storing the embargo date. Then, define a new workflow of the 'Event/Wait until date' type linked to the new field and modify the 'Content/Publish/Before' trigger to start the deferred publishing workflow.

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 11:07:27
Script start
Timing: Jan 18 2025 11:07:27
Module start 'layout'
Timing: Jan 18 2025 11:07:27
Module start 'content'
Timing: Jan 18 2025 11:07:28
Module end 'content'
Timing: Jan 18 2025 11:07:28
Script end

Main resources:

Total runtime0.4739 sec
Peak memory usage4,096.0000 KB
Database Queries54

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0063 589.1641152.6406
Module start 'layout' 0.00630.0034 741.804739.4766
Module start 'content' 0.00970.4625 781.2813491.8750
Module end 'content' 0.47230.0016 1,273.15638.1250
Script end 0.4738  1,281.2813 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00350.7441160.0002
Check MTime0.00150.3183160.0001
Mysql Total
Database connection0.00090.190110.0009
Mysqli_queries0.426990.0805540.0079
Looping result0.00050.1076520.0000
Template Total0.434491.720.2172
Template load0.00270.578920.0014
Template processing0.431791.093120.2158
Template load and register function0.00020.039510.0002
states
state_id_array0.00140.297010.0014
state_identifier_array0.00080.171220.0004
Override
Cache load0.00230.4825130.0002
Sytem overhead
Fetch class attribute can translate value0.00080.167420.0004
Fetch class attribute name0.00140.300330.0005
XML
Image XML parsing0.00060.126220.0003
class_abstraction
Instantiating content class attribute0.00000.001730.0000
General
dbfile0.00090.1800160.0001
String conversion0.00000.001540.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
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
2content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 7
 Number of unique templates used: 5

Time used to render debug report: 0.0003 secs