AutoVariable
Specifies directives which should be translated to Variable
settings.
Synopsis
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
Variable names are case-sensitive.
"__ERRORFILE__" is not the same as "__ErrorFile__".
|
|
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.
|