Forums / Developer / Is it possible to reset the version numbers ..?

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

eZ debug

Timing: Jan 18 2025 11:12:01
Script start
Timing: Jan 18 2025 11:12:01
Module start 'content'
Timing: Jan 18 2025 11:12:03
Module end 'content'
Timing: Jan 18 2025 11:12:03
Script end

Main resources:

Total runtime2.0698 sec
Peak memory usage4,096.0000 KB
Database Queries210

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0071 588.9766180.8125
Module start 'content' 0.00711.8072 769.7891678.0859
Module end 'content' 1.81430.2554 1,447.8750341.6797
Script end 2.0697  1,789.5547 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00420.2006210.0002
Check MTime0.00150.0712210.0001
Mysql Total
Database connection0.00100.047910.0010
Mysqli_queries1.969195.13702100.0094
Looping result0.00290.14032080.0000
Template Total2.033298.221.0166
Template load0.00200.096720.0010
Template processing2.031298.136221.0156
Template load and register function0.00020.007510.0002
states
state_id_array0.00110.053210.0011
state_identifier_array0.00280.135720.0014
Override
Cache load0.00200.0968450.0000
Sytem overhead
Fetch class attribute can translate value0.00170.081550.0003
Fetch class attribute name0.00130.0631100.0001
XML
Image XML parsing0.00210.101450.0004
class_abstraction
Instantiating content class attribute0.00000.0013120.0000
General
dbfile0.00460.2246400.0001
String conversion0.00000.000330.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

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
7content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
11content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
6content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
5content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
2content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 33
 Number of unique templates used: 7

Time used to render debug report: 0.0002 secs