If you want to keep the repository content on a file system rather than in your database, you can use a property descriptor, atg.repository.FilePropertyDescriptor, as the property type of your content-property. The FilePropertyDescriptor is a simple read-only property descriptor that takes a path name and converts it to a java.io.File object. Use a pathPrefix attribute in the property definition to specify the parent directory of the content.

In the following example, the articleText property is defined with the atg.repository.FilePropertyDescriptor property type. The pathPrefix is defined as /tmp/:

<item-descriptor name="articles ...
                 content-property="articleText">
...
   <property name="articleText"
             property-type="atg.repository.FilePropertyDescriptor">
  <!--
    Looks for content starting in the /tmp directory. The item-path is
    appended to the pathPrefix to create the file system path
    -->
      <attribute name="pathPrefix" value="/tmp/"/>
   </property>
...
</item-descriptor>

Copyright © 1997, 2013 Oracle and/or its affiliates. All rights reserved. Legal Notices