By default, the Laserfiche Repository Creation Wizard creates new repositories with a template named "General." This setting can be changed to create a default template that matches
your needs.
The Laserfiche Repository Creation Wizard checks a xml file for the information to use when creating the default template. Modify this xml file to configure the default template for
new repositories.
To modify the lfsitmpl.xml file:
- From a text editor, open the lfsitmpl.xml file. This file can be found in the Admin folder in your Laserfiche Client installation folder. By default, this folder can be found in:
C:\Program Files\LaserFiche\Client\Admin.
- Modify the xml tags to change the format of the default template created during the repository creation process.
- The template element's "templateName" attrribute defines the name of the template.
- The fielddef element can have the following attributes:
- name: Defines the name of a particular field in the template.
- type: Defines the type of field. There are 5 possible values: Char, Date, Long Integer, Integer, DateTime.
- len: Defines the character length of the field.
- isIndexed: Defines whether a field is indexed. This value can be set to either 0 or 1.
- isRequired: Defines whether a field is required. This value can be set to either 0 or 1.
- default: Defines the default value of the field.
- regex: Defines a regular expression constraint.
- regex-error: Defines a constraint violation messasge.
Note: To define a list field, specify the type as "char." Then add the list field values as
sub-elements. See the following example:
<fielddef name="sample_list_field" type="char" len="40" >
<lookup value="my first value" />
<lookup value="my second value" />
<lookup value="my third value" />
</fielddef>
For more help on using XML, refer to
http://java.sun.com/webservices/docs/1.0/tutorial/doc/IntroXML.html