Retrieving version number while editing a draft

Author Message

Jerome Despatis

Tuesday 10 November 2009 4:47:13 am

Hi

 

I'm editing an article, therefore i'm editing a draft.

And in my article, I have a custom datatype in an attribute.

The latter needs to know the current version edited (the draft), how can it get it ?

Maybe looking the url, but there's surely a better way ?

Thanks

Jerome Despatis

Tuesday 10 November 2009 4:51:44 am

Well forget my question, I haven't seen the Version attribute in my contentObjectAttributes parameter in objectAttributeContent() function...

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:58:32
Script start
Timing: Jan 18 2025 04:58:32
Module start 'layout'
Timing: Jan 18 2025 04:58:32
Module start 'content'
Timing: Jan 18 2025 04:58:33
Module end 'content'
Timing: Jan 18 2025 04:58:33
Script end

Main resources:

Total runtime0.6173 sec
Peak memory usage4,096.0000 KB
Database Queries52

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0073 589.4766152.6406
Module start 'layout' 0.00730.0034 742.117239.4766
Module start 'content' 0.01070.6048 781.5938421.6563
Module end 'content' 0.61550.0017 1,203.25008.1250
Script end 0.6172  1,211.3750 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00330.5306160.0002
Check MTime0.00130.2125160.0001
Mysql Total
Database connection0.00120.191210.0012
Mysqli_queries0.578193.6536520.0111
Looping result0.00040.0643500.0000
Template Total0.583694.520.2918
Template load0.00200.322720.0010
Template processing0.581594.214320.2908
Template load and register function0.00010.019910.0001
states
state_id_array0.00090.152010.0009
state_identifier_array0.00080.135420.0004
Override
Cache load0.00160.2665120.0001
Sytem overhead
Fetch class attribute can translate value0.00070.120210.0007
Fetch class attribute name0.00110.175120.0005
XML
Image XML parsing0.00010.017710.0001
class_abstraction
Instantiating content class attribute0.00000.001020.0000
General
dbfile0.00150.2370100.0001
String conversion0.00000.001840.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
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
2content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 6
 Number of unique templates used: 4

Time used to render debug report: 0.0001 secs