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.