Added by Arthur Bogaart, last edited by Jasha Joachimsthal on Nov 04, 2008  (view change)

Labels:

versioning versioning Delete
slide slide Delete
hippo-repository hippo-repository Delete
history history Delete
workflow workflow Delete
Enter labels to add to this page:
Wait Image 
Looking for a label? Just start typing.
Hippo CMS version 6.04.00+

Asset workflow and versioning in Hippo CMS

Configuration

  1. First make sure you have enabled version management in the Hippo CMS.
  2. In the build.properties of Hippo CMS, add
    cms.use.assets.workflow=on
    
  3. Optionally, you can have versions created automatically on publication and/or unpublication. To use this, add a ConstantExtractor to extractors.xml in the repository namespace configuration. Note that you need to make sure the uri matches your repository layout - for the default layout as shipped with hippo-repository, the following will work:
    <extractor classname="nl.hippo.slide.extractor.ConstantExtractor" uri="/files/default.preview/binaries" content-type="image/jpeg|image/gif|application/pdf|application/msword">
      <configuration>
        <instruction property="createVersionOnPublication" namespace="http://hippo.nl/cms/1.0" value="true"/>
        <instruction property="createVersionOnUnpublication" namespace="http://hippo.nl/cms/1.0" value="true"/>
      </configuration>
    </extractor>

When enabling this feature you shouldn't read binaries from the repository using the repository-binary:your_repository_name:// protocol, since this will always load binaries from the preview. Use repository:// instead. This will be fixed in HippoCocoon version 2.1.11

More info

A version of an asset (e.g. /default/files/default.preview/binaries/foo/bar.gif) will be saved under the correponding path in the .history repository. The version asset will be one level deeper than the original asset: /default/files/default.history/foo/bar.gif/1.gif for version 1. So /default/files/default.history/foo/bar.gif is a collection, with all the versions as numbered child assets (1.gif, 2.gif, 3.gif, etc.) under it.