Skip to the content
Documentation
Help Start
Reading in:
  • German: 9,059 of 9,059 pages
About the help in other languages
All help pages

content.ini [VersionManagement]

The settings of [VersionManagement] in content.ini: DefaultVersionHistoryLimit, VersionHistoryClass, DeleteDrafts, DraftsDuration, DraftsCleanUpLimit, InternalDraftsDuration, InternalDraftsCleanUpLimit

Download as PDF

Address: https://doc.exponential.earth/learninminutes/exphelp/viewer/examples/ini-settings/content/VersionManagement.md

On this page

content.ini [VersionManagement]

The block [VersionManagement] of settings/content.ini, with 7 setting(s).

ViewModes[]=print
Define maximum versions can be managed. Use syntax
VersionHistoryClass[class_id]=maximum_nr to specify value for particular
classes. Or if you prefer to use class_identifier (since 4.1.1)
VersionHistoryClass[class_identifier]=maximum_nr
Otherwise, the value of DefaultVersionHistoryLimit will be used.
When decreasing DefaultVersionHistoryLimit or one value in VersionHistoryClass,
you can execute bin/php/cleanupversions.php to remove the exceeded archived versions.

Never edit settings/content.ini itself: an update replaces it. Put the settings you change in an override, which wins over the shipped file:

  • settings/override/content.ini.append.php for every siteaccess,
  • settings/siteaccess/<siteaccess>/content.ini.append.php for one siteaccess,
  • extension/<extension>/settings/content.ini.append.php in an extension (read when the extension is active).

DefaultVersionHistoryLimit

Default: 45.

<?php /* #?ini charset="utf-8"?
# settings/override/content.ini.append.php
[VersionManagement]
DefaultVersionHistoryLimit=45
*/ ?>

VersionHistoryClass

Default: a hash of 1: 1=75.

<?php /* #?ini charset="utf-8"?
# settings/override/content.ini.append.php
[VersionManagement]
# an empty "VersionHistoryClass[]" first replaces the shipped list; without it the items are added
VersionHistoryClass[]
VersionHistoryClass[1]=75
*/ ?>

DeleteDrafts

Default: disabled.

<?php /* #?ini charset="utf-8"?
# settings/override/content.ini.append.php
[VersionManagement]
DeleteDrafts=disabled
*/ ?>

DraftsDuration

Time duration (number of days, hours, minutes and seconds)
before a draft is considered old and can be removed

Default: a hash of 4: days=90, hours=0, minutes=0, seconds=0.

<?php /* #?ini charset="utf-8"?
# settings/override/content.ini.append.php
[VersionManagement]
# an empty "DraftsDuration[]" first replaces the shipped list; without it the items are added
DraftsDuration[]
DraftsDuration[days]=90
DraftsDuration[hours]=0
DraftsDuration[minutes]=0
DraftsDuration[seconds]=0
*/ ?>

DraftsCleanUpLimit

Clean-up limit per one run of the 'old_drafts_cleanup.php' cronjob script

Default: 100.

<?php /* #?ini charset="utf-8"?
# settings/override/content.ini.append.php
[VersionManagement]
DraftsCleanUpLimit=100
*/ ?>

InternalDraftsDuration

Time duration (number of days, hours, minutes and seconds)
before an internal draft is considered old and can be removed

Default: a hash of 4: days=1, hours=0, minutes=0, seconds=0.

<?php /* #?ini charset="utf-8"?
# settings/override/content.ini.append.php
[VersionManagement]
# an empty "InternalDraftsDuration[]" first replaces the shipped list; without it the items are added
InternalDraftsDuration[]
InternalDraftsDuration[days]=1
InternalDraftsDuration[hours]=0
InternalDraftsDuration[minutes]=0
InternalDraftsDuration[seconds]=0
*/ ?>

InternalDraftsCleanUpLimit

Clean-up limit per one run of the 'internal_drafts_cleanup.php' cronjob script

Default: 100.

<?php /* #?ini charset="utf-8"?
# settings/override/content.ini.append.php
[VersionManagement]
InternalDraftsCleanUpLimit=100
*/ ?>

Generated by ./console exp:help:examples from settings/content.ini. Do not edit this page: change the source and generate again (how). Free documentation: GFDL 1.3 or later.

Something wrong on this page? Report an error

Documentation license

This documentation is free documentation, licensed under the GNU Free Documentation License 1.3 or later.

Exponential Copyright © 1998-2026 Exponential Foundation and 7x