Customizing LCM internals using the "my_options" file

A few internal LCM features do not have a user-interface, either because they are too specific or because they are too confusing for most administrators. Such features have their default value set in “inc/inc_version.php”, but since this file should not be modified, administrators may create a “my_options.php” file where they can store site-specific configurations.

Where to create my_options.php

Since LCM 0.7.0, this file is located in inc/config/my_options.php. In previous versions, it was located in inc/my_options.php

This file does not exist by default, you must create it manually. For example, open a plain text editor (vim, gedit, notepad), save the file locally as my_options.php then upload it to the server from where LCM is running, in the "inc/config" sub-directory.

Format of the file

The format of the file is the following:

Important: You must be absolutely sure that the file does not have a blank line before or after the <?php ... ?> tags, otherwise LCM will display a "headers already sent" error message. Also note that the value of a variable will be a string, numeric or boolean, depending on what the variable does. This will be clearly documented for each variable that may be customised.

Variables which may be customised

- Translation and debug:

  • $GLOBALS['debug'] = true; : by default is false.
  • $GLOBALS['debug_tr'] = 1; : by default is 0. Possible values: 1 = print non-translated strings in red, 2 = show the translation keys, not the translated result. For more information: LCM debug options

- Database table prefix:

  • $GLOBALS['table_prefix'] = 'foo';: by default is lcm. Allows to install LCM more than once in the same database. An SQL table which would be, for example, lcm_case, would become foo_case. Warning: if you export/import LCM to another server, the other installation must use the same table prefix.

- Default values for a new case:

  • $GLOBALS['case_default_status'] = 'draft';: by default is open (was draft before LCM 0.7.2). By default, new cases are set to status = ’open’, but it can be set to ’draft’ if your organisation uses this (i.e. an intern makes data entry, other staff then open the case when they start working on it). In any case, the user can still choose the status when creating the case. This option only affects the default proposed value for the "status" field.

Other variables may be documented in the section: Customizing LCM.

To send a message Private area Registering with the site xml ?