[SOLVED] Edit User profile -> disable version

Author Message

Michael Fürst

Tuesday 19 May 2009 12:07:50 pm

Hi there,

Is there a way to disable versioning for objects of the type "user"? There are two reasons for that:

1) In frontend Users shouldn't have to decide which version they want to edit if they change their profile data (for example if they didn't cancel or save an old draft)

2) Versioning of user objects isn't really important

Maybe there is also another way to disable the version-selection in frontend (for example automatically select the latest draft for editing).

Thanks in advance,
cheers,
Mike

Ivo Lukac

Tuesday 19 May 2009 3:08:41 pm

Hello Mike,

Here you go:
http://ez.no/doc/ez_publish/technical_manual/4_0/reference/configuration_files/site_ini/contentsettings/editdirtyobjectaction

put this into your frontend siteaccess site.ini:
[ContentSettings]
EditDirtyObjectAction=usecurrent

http://www.linkedin.com/in/ivolukac
http://www.netgen.hr/eng/blog
http://twitter.com/ilukac

Michael Fürst

Wednesday 20 May 2009 2:28:45 am

Hi Ivo,

Omg.. ok, you'll have to know that... I would never expect this function behind this parameter :) I've already tried to do something with "VersionHistoryClass" - but that isn't working.

Thanks a lot guy! :)

Cheers,
Mike

Ivo Lukac

Wednesday 20 May 2009 4:06:40 am

Comes with years and years off digging ;)

Cheers

http://www.linkedin.com/in/ivolukac
http://www.netgen.hr/eng/blog
http://twitter.com/ilukac

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

Main resources:

Total runtime0.6186 sec
Peak memory usage4,096.0000 KB
Database Queries60

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0067 589.1641152.6406
Module start 'layout' 0.00670.0092 741.804739.4766
Module start 'content' 0.01590.6013 781.2813558.8203
Module end 'content' 0.61720.0014 1,340.101612.1250
Script end 0.6186  1,352.2266 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00340.5515160.0002
Check MTime0.00140.2209160.0001
Mysql Total
Database connection0.00120.197710.0012
Mysqli_queries0.563791.1267600.0094
Looping result0.00050.0853580.0000
Template Total0.582294.120.2911
Template load0.00180.293120.0009
Template processing0.580393.814520.2902
Template load and register function0.00010.017210.0001
states
state_id_array0.00090.152910.0009
state_identifier_array0.00090.148720.0005
Override
Cache load0.00150.2426310.0000
Sytem overhead
Fetch class attribute can translate value0.00050.077920.0002
Fetch class attribute name0.00090.152160.0002
XML
Image XML parsing0.00210.343220.0011
class_abstraction
Instantiating content class attribute0.00000.003180.0000
General
dbfile0.00210.3438230.0001
String conversion0.00000.002040.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/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
4content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
8content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
4content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 22
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs