Using different configurations in the same site

If you need to use different values for the KTML global options throughout your site, and not replace any of the code added on the page by the extension, in order to make sure the Server Behavior remains editable, here's the steps you have to take:

  1. In the includes.ktm/ktml4.xxx file, locate the line of code that calls for the ktml4.config.xxx file.
    Note: replace xxx with the actual file extension required by your particular server model: php, cfm, asp

  2. The code line to locate is different based on the server model, looking similar to:

  3. Replace the string that is added into the array by these lines with a variable name - myconfigfile. The new code bits should look like the following:

  4. The last thing you have to do is define what value will this variable have. To do so, you will have to add a code block that checks for an existing configuration value and sets the variable accordingly. If a value does not exist, the default file will be laoded. Add the following code on top of the ktml4.xx file:

  5. Note that this approach assumes that you will create the custom configuration files in the same folder as the original ktml4.config.xxx file. Save the ktml4.xx file that you modified.

  6. On the page that you want to have a different set of configuration settings for KTML, add this line on top of the page, before the code that includes the ktml4.xxx file:

  7. Save the file and upload it in the browser. The particular settings will be loaded from the desired file.
     

You do not need to change anything else in order for the different configurations to work.