For more information... RTFM!
NAVIGATION
ACCOUNT LOGIN

You are not logged in

Powered by Interchange version 5.7.0

AutoVariable

Specifies directives which should be translated to Variable settings.

Synopsis

AutoVariable  directive

The default is blank.

Scope

This directive is available for use globally (in the "interchange.cfg" configuration file), and locally (in the "catalog.cfg" configuration file).

The global configuration affects all websites running under the Interchange instance.  Each individual website's local configuration will not affect or influence other websites in any way. 

Description

Specifies directives which should be translated to Variable settings.  For scalars, the directive name becomes the Variable name and yields its value.  For instance, if "__ErrorFile__" is used on a page then the value of the ErrorFile directive will be output (error.log, by default, in this case).

Array variables have a "_n" added, where _N is an ordinal index.  For example, the values of the SafeUntrap directive may be accessed using "__SafeUntrap_0__" and "__SafeUntrap_1__" etc.

Hash variables have a "_key" added.  For example, the values of the SysLog directive may be accessed using "__SysLog_command__" and "__SysLog_facility__" etc. This facility cannot handle hash keys that have non-word characters or whitespace;  Only single-level arrays and hashes are translated properly.

Note

Note

Variable names are case-sensitive.  "__ERRORFILE__" is not the same as "__ErrorFile__".

Warning

Warning

This directive does not support hash keys that contain non-word or whitespace characters.  Also, only the first-level of arrays and hash keys will be properly translated.

Categories:  Global config directives | Local config directives
Last modified by: Kevin Walsh
Modification date: Monday 30 October 2006 at 12:48 AM (EST)
Home  |  Legal nonsense  |  Privacy policy  |  Contact us