"Draft" system

Author Message

Federico Canuti

Sunday 18 December 2005 10:08:36 am

Hello, I was thinking about disabling the "draft" system in ez, mainly because for a common user logging in a site it's not obvious nor easy to use a system that track down several drafts of his account. So what can I do to make it more "old style", I mean click, modify save and nothing more?

Paul Forsyth

Monday 19 December 2005 12:24:49 am

You cant disable the draft system but you can tweak it a little.

In site.ini this setting will ensure that when you edit you wont see the draft screen:

[ContentSettings]
EditDirtyObjectAction=usecurrent

However, if you dont want the sitewide application of this setting try in content.ini to adjust the number of allowable drafts:

[VersionManagement]
DefaultVersionHistoryLimit=10
VersionHistoryClass[1]=5

Alter VersionHistoryClass to the class you need.

Note: you need at least 2 versions. Putting 1 will produce errors.

Paul

Federico Canuti

Monday 19 December 2005 7:58:18 am

Exactly what I was looking for, using the last one. Thanks

Xavier Dutoit

Saturday 24 December 2005 2:27:40 am

Thanks Paul,

I always look for that EditDirtyObjectAction in content.ini, where it should be IMO.

For future references: the setting to improve the content management and avoid the message none of my users understand about a " This object is already being edited" is in site.ini .

X+

http://www.sydesy.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 22:34:03
Script start
Timing: Jan 18 2025 22:34:03
Module start 'layout'
Timing: Jan 18 2025 22:34:03
Module start 'content'
Timing: Jan 18 2025 22:34:05
Module end 'content'
Timing: Jan 18 2025 22:34:05
Script end

Main resources:

Total runtime1.3830 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.0072 587.7891152.6094
Module start 'layout' 0.00720.0041 740.398439.4141
Module start 'content' 0.01131.3703 779.8125573.0859
Module end 'content' 1.38160.0014 1,352.898412.1953
Script end 1.3830  1,365.0938 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00330.2396160.0002
Check MTime0.00140.1026160.0001
Mysql Total
Database connection0.00100.070510.0010
Mysqli_queries1.328196.0297620.0214
Looping result0.00070.0483600.0000
Template Total1.339796.920.6699
Template load0.00230.163220.0011
Template processing1.337496.703720.6687
Template load and register function0.00030.020010.0003
states
state_id_array0.00170.119910.0017
state_identifier_array0.00170.126320.0009
Override
Cache load0.00190.1372240.0001
Sytem overhead
Fetch class attribute can translate value0.00060.040930.0002
Fetch class attribute name0.00100.071550.0002
XML
Image XML parsing0.00090.063430.0003
class_abstraction
Instantiating content class attribute0.00000.000850.0000
General
dbfile0.00090.0658160.0001
String conversion0.00000.000640.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
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: 15
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs