Disabling drafts in user profiles

Author Message

Vjeran Vlahovic

Monday 28 March 2005 1:24:16 pm

Is it possible to turn off drafts somehow? I would like to avoid user's confusion which may occur when user does not click "save" or "cancel" button during profile editing. I want to avoid "Current drafts->edit/new draft" options next time when he goes to edit his profile...

Thanks.

http://www.netgen.hr/eng

Sebastiaan van der Vliet

Monday 28 March 2005 1:41:45 pm

Hi,

Try adding the following lines to the site.ini.append.php of your frontend siteaccess:

[ContentSettings]
EditDirtyObjectAction=usecurrent

Certified eZ publish developer with over 9 years of eZ publish experience. Available for challenging eZ publish projects as a technical consultant, project manager, trouble shooter or strategic advisor.

Ɓukasz Serwatka

Monday 28 March 2005 8:55:15 pm

Hi Vjeran,

You can alos add

<input type="hidden" name="DiscardConfirm" value="0" />

to your form. When user click on "Cancel" button eZ publish will not ask him about drafts.

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 03:43:53
Script start
Timing: Jan 31 2025 03:43:53
Module start 'layout'
Timing: Jan 31 2025 03:43:53
Module start 'content'
Timing: Jan 31 2025 03:43:54
Module end 'content'
Timing: Jan 31 2025 03:43:54
Script end

Main resources:

Total runtime0.8280 sec
Peak memory usage8,192.0000 KB
Database Queries59

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0058 588.1406151.2109
Module start 'layout' 0.00580.0035 739.3516220.7031
Module start 'content' 0.00940.8176 960.05474,495.0547
Module end 'content' 0.82700.0010 5,455.109411.8438
Script end 0.8280  5,466.9531 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00350.4177160.0002
Check MTime0.00120.1456160.0001
Mysql Total
Database connection0.00080.093210.0008
Mysqli_queries0.747190.2266590.0127
Looping result0.00060.0673570.0000
Template Total0.783494.620.3917
Template load0.00190.224720.0009
Template processing0.781694.390720.3908
Template load and register function0.00120.139910.0012
states
state_id_array0.00070.086710.0007
state_identifier_array0.00080.100020.0004
Override
Cache load0.00150.1855170.0001
Sytem overhead
Fetch class attribute can translate value0.00190.231530.0006
Fetch class attribute name0.00200.237660.0003
XML
Image XML parsing0.00520.623230.0017
class_abstraction
Instantiating content class attribute0.00000.001260.0000
General
dbfile0.00530.6431320.0002
String conversion0.00000.001040.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
4content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/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: 14
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs