How to suppress(Not Allow) the version and draft function?

Author Message

bill hung

Tuesday 15 March 2005 12:40:18 am

Dear All,
I want to only keep a version(lastest) on the server, and Not to save draft.
How I to do?
In the content.ini, I found:
DefaultVersionHistoryLimit 1
VersionHistoryClass siteaccess [1]5
undefined [2]5
but I don't understand.
thanks and best regards!

bill hung

Tuesday 15 March 2005 3:55:00 pm

help me!

Ɓukasz Serwatka

Tuesday 15 March 2005 10:16:14 pm

Hi Bill,

You can do this by setting

[VersionManagement]
DefaultVersionHistoryLimit=2
VersionHistoryClass[1]=2

You can`t set VersionHistoryClass[1] to 1 because then you will not be able to edit your object. Temporary version is created as a draft version when you editing object.

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

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 31 2025 06:11:34
Script start
Timing: Jan 31 2025 06:11:34
Module start 'layout'
Timing: Jan 31 2025 06:11:34
Module start 'content'
Timing: Jan 31 2025 06:11:35
Module end 'content'
Timing: Jan 31 2025 06:11:35
Script end

Main resources:

Total runtime1.4830 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.0063 588.3906151.2422
Module start 'layout' 0.00630.0029 739.632836.7109
Module start 'content' 0.00921.4725 776.3438930.5938
Module end 'content' 1.48180.0012 1,706.93757.7813
Script end 1.4830  1,714.7188 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00340.2310160.0002
Check MTime0.00140.0949160.0001
Mysql Total
Database connection0.00070.050510.0007
Mysqli_queries1.429596.3904570.0251
Looping result0.00080.0538550.0000
Template Total1.442697.320.7213
Template load0.00240.158820.0012
Template processing1.440397.118020.7201
Template load and register function0.00190.125910.0019
states
state_id_array0.00300.200710.0030
state_identifier_array0.00330.225720.0017
Override
Cache load0.00190.1273200.0001
Sytem overhead
Fetch class attribute can translate value0.00040.028920.0002
Fetch class attribute name0.00230.156740.0006
XML
Image XML parsing0.00070.050420.0004
class_abstraction
Instantiating content class attribute0.00000.000740.0000
General
dbfile0.00270.1803180.0001
String conversion0.00000.000540.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/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
4content/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
1content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 12
 Number of unique templates used: 7

Time used to render debug report: 0.0003 secs