Archiving Articles..

Author Message

Fady Chakik

Tuesday 08 April 2003 3:22:57 am

Hello,

How can we archive articles in ezpublish3? Is it possible to unpublish however a specific folder and all its content, then to republish it with all its content?

Thank you.
-Fadi

Bård Farstad

Friday 11 April 2003 7:11:35 am

For this kind of behaviour we've created a cron job which will move the article to another folder after some time. To achieve this you will need to do some programming.

The cron job is a script which runs e.g. every day.

--bård

Documentation: http://ez.no/doc

Fady Chakik

Sunday 13 April 2003 1:11:30 am

Hello,

But Maybe I don't want to archive all articles on daily basis!! I Think it will be better to choose from two options: either archiving on some dailyu basis or arhiving the articles I want manually.

May we can implement a solution like creating new folders and moving the articles from the main content to these folders!

-Fadi

Jørgen Skogstad

Thursday 01 May 2003 3:25:38 am

Actually I've been thinkinig alot about this since I need lifecycle functionality.

What needs to be implemented is a lifecycle workflow which one can attach to every content object (and section / ++ / ?? ). What you would then do is to attach a 10-day... or a 20-day .. or indefinate .. or 1000 day lifecycle to the object (could be an article .. or an image .. or..) .. and after that lifecycle ends the object is archived and perhaps the user who created the object could get a notification (this should also be available in a tab to manage archived content) .. to decide if he wanted to edit the object again and attach a new lifecycle enabling the content object to be published again.

This should be quite easy .. provided the workflows/events/trigger stuff done in Ez has been implemented in a fair fashion.

Any ideas??

Bård: could you share the cron script you run to do this?? Just to have a look at it?? I really would like to see this..

Thanks in advance!

Kindest,
Jørgen Skogstad

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 04:56:51
Script start
Timing: Jan 18 2025 04:56:51
Module start 'layout'
Timing: Jan 18 2025 04:56:51
Module start 'content'
Timing: Jan 18 2025 04:56:52
Module end 'content'
Timing: Jan 18 2025 04:56:52
Script end

Main resources:

Total runtime0.9111 sec
Peak memory usage4,096.0000 KB
Database Queries62

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0078 587.8047152.6094
Module start 'layout' 0.00780.0031 740.414139.4297
Module start 'content' 0.01100.8986 779.8438587.5781
Module end 'content' 0.90960.0015 1,367.421912.1875
Script end 0.9111  1,379.6094 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00330.3570160.0002
Check MTime0.00120.1357160.0001
Mysql Total
Database connection0.00140.157910.0014
Mysqli_queries0.847192.9683620.0137
Looping result0.00070.0791600.0000
Template Total0.866795.120.4333
Template load0.00230.250220.0011
Template processing0.864494.869520.4322
Template load and register function0.00020.018110.0002
states
state_id_array0.00140.156010.0014
state_identifier_array0.00180.195020.0009
Override
Cache load0.00190.2076270.0001
Sytem overhead
Fetch class attribute can translate value0.00140.157430.0005
Fetch class attribute name0.00120.126260.0002
XML
Image XML parsing0.00130.138230.0004
class_abstraction
Instantiating content class attribute0.00000.001660.0000
General
dbfile0.00120.1333230.0001
String conversion0.00000.001440.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
4content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
6content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
2content/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: 16
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs