Is it possible to reset the version numbers ..?

Author Message

Satheesh R

Wednesday 23 April 2008 5:29:00 am

Dear All,

Is it possible to reset the version numbers of an article, document page, blog, front page ... etc ..?

Regards
Shr

Thanks and Regards
R Satheesh

Xavier Gouley

Wednesday 23 April 2008 6:39:51 am

Hi,

Never seen such an extension. It is not native.

I think that reset a version number should be quite hard for database... Think that linked content should not work anymore if version is changed, for example...

The version number for a content is used by a lot of other things in eZpublish : correction should be huge for this. I think it's a bad idea.

Best regards,

Xavier Gouley
http://www.gxapplications.com/eng_blog/GX-Admin-s-Blog/

Piotrek Karaś

Wednesday 23 April 2008 6:47:58 am

What would be the reason for this?

--
Company: mediaSELF Sp. z o.o., http://www.mediaself.pl
eZ references: http://ez.no/partners/worldwide_partners/mediaself
eZ certified developer: http://ez.no/certification/verify/272585
eZ blog: http://ez.ryba.eu

Satheesh R

Wednesday 23 April 2008 10:32:30 pm

Dear All,
Thanks for the replies, the reason is i don't want to maintain versions thats why..?
if its bad then i'll go by the versioning system

Regards
Shr

Thanks and Regards
R Satheesh

Piotrek Karaś

Thursday 24 April 2008 4:00:29 am

The way you wrote it I thought you wanted to go back to version 1, which could be quite troublesome as version one is a bit special, some internal logic could reference this value, etc... If you just want to cut down on version amount, there's a setting for that:
http://ez.no/doc/ez_publish/technical_manual/4_0/reference/configuration_files/content_ini/versionmanagement

Never heard of completely switching version control off, though.

--
Company: mediaSELF Sp. z o.o., http://www.mediaself.pl
eZ references: http://ez.no/partners/worldwide_partners/mediaself
eZ certified developer: http://ez.no/certification/verify/272585
eZ blog: http://ez.ryba.eu

Ekkehard Dörre

Thursday 24 April 2008 3:20:23 pm

Hi Satheesh

go into content.ini and there to

# Define maximum versions can be managed. Use syntax
# VersionHistoryClass[class_id]=maximum_nr to specify value for particular
# classes. Otherwise, the value of DefaultVersionHistoryLimit will be used.
[VersionManagement]
DefaultVersionHistoryLimit=10
VersionHistoryClass[1]=5

and change the
DefaultVersionHistoryLimit=10

to 2, smaller is not possible because of versions.php and 3 more files in ezp4

$versionlimit = $contentINI->variable( 'VersionManagement', 'DefaultVersionHistoryLimit' );

    $limitList = $contentINI->variable( 'VersionManagement', 'VersionHistoryClass' );

    $classID = $object->attribute( 'contentclass_id' );
    foreach ( array_keys ( $limitList ) as $key )
    {
        if ( $classID == $key )
            $versionlimit = $limitList[$key];
    }
    if ( $versionlimit < 2 )
        $versionlimit = 2;

You need minimum one published and one draft version = 2

Please tell us your experience, if you change it to 2.

Greetings ekke

http://www.coolscreen.de - Over 40 years of certified eZ Publish know-how: http://www.cjw-network.com
CJW Newsletter: http://projects.ez.no/cjw_newsletter - http://cjw-network.com/en/ez-publ...w-newsletter-multi-channel-marketing

Piotrek Karaś

Thursday 24 April 2008 9:43:17 pm

Ekkehard,
We have some sites running 2-setting, someone else has implemented it so I can't share details right away, but what would you like to know?
Piotrek

--
Company: mediaSELF Sp. z o.o., http://www.mediaself.pl
eZ references: http://ez.no/partners/worldwide_partners/mediaself
eZ certified developer: http://ez.no/certification/verify/272585
eZ blog: http://ez.ryba.eu

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 01:25:24
Script start
Timing: Jan 31 2025 01:25:24
Module start 'layout'
Timing: Jan 31 2025 01:25:24
Module start 'content'
Timing: Jan 31 2025 01:25:24
Module end 'content'
Timing: Jan 31 2025 01:25:24
Script end

Main resources:

Total runtime0.0236 sec
Peak memory usage6,144.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0057 588.2656151.2266
Module start 'layout' 0.00570.0041 739.4922220.7188
Module start 'content' 0.00980.0120 960.21091,005.9609
Module end 'content' 0.02180.0017 1,966.171941.9922
Script end 0.0235  2,008.1641 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002811.7326140.0002
Check MTime0.00114.8657140.0001
Mysql Total
Database connection0.00104.253310.0010
Mysqli_queries0.002811.846030.0009
Looping result0.00000.050610.0000
Template Total0.00125.210.0012
Template load0.00093.762410.0009
Template processing0.00031.430310.0003
Override
Cache load0.00062.462710.0006
General
dbfile0.00021.004180.0000
String conversion0.00000.026340.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs