Keywords

From DocMGR

Jump to: navigation, search

DocMGR has changed to a more versatile keyword setup. The keywords are stored in config/keywords.xml. If you follow the templates, the setup is relatively painless.

The new setup allows for the Administrator to allow the user to select from predefined values for a keyword. Currently, keywords may be inserted using a text field or dropdown select box. More options may be added later.

Currently, up to 6 different keywords are allowed for a file.

[edit] Text Keywords

This is basically a text box the user fills in with the keyword value. To setup a text keyword, use the template below:

   <keyword>
       <title>Invoice Number</title>
       <name>field1</name>
       <type>text</type>
   </keyword>

The title can be anything you want. The type must be set to text, and the name must be either field1-field6. The name tag must have a different value for every keyword!!!

[edit] Dropdown Keywords

These allow the user to select from a predefined set of values for a keyword, and then search by those values later. Simply use the template below. You can specify as many tags as you wish.

   <keyword>
       <title>Purchase Method</title>
       <name>field2</name>
       <type>dropdown</type>
       <option>Web</option>
       <option>Catalog</option>
       <option>Store</option>
   </keyword>

Again, the title can be anything you want. The type must be set to dropdown, and the name must be either field1-field6. The name tag must have a different value for every keyword!!!

This template is also already in config/keywords.xml. Just be sure to remove the comment tags to enable them.

Personal tools