Hi
Please could someone tell me how to override the maximum number of
versions to be stored in the repository?
This used to be done by setting a property in the configuration called
maxVersionIndex, which was then loaded into VersionConfig.java
(info.magnolia.cms.beans.config.VersionConfig) using the following code:
/**
* load config from the repository
*/
public static void load() {
log.info("Config : loading version config");
try {
Content startPage =
ContentRepository.getHierarchyManager(ContentRepository.CONFIG).getConte
nt(CONFIG_PATH);
isActive = startPage.getNodeData(ACTIVE).getBoolean();
maxVersions =
startPage.getNodeData(MAX_VERSION_INDEX).getLong();
}
catch (RepositoryException re) {
log.error("Config: Failed to load version config or its not
defined - " + re.getMessage());
log.debug("Exception caught", re);
}
}
However at revision 6617, VersionConfig.java was removed from SVN by an
'scharles' with the comment 'Simplification'. It was later added back
into SVN at revision 6941, again by 'scharles' however the later version
(which hasn't changed much since) now no longer loads in config details
from the repository. As far as I can see it will only ever keep a
maximum of 2 revisions (what it is initialized with).
If anyone knows how to override this number so that I can keep more than
just 2 versions please let me know - it would be much appreciated!
Cheers
Katherine
----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------