|
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 - eZ Publish, Ibexa, SOLR, Elastic Search
|