Name

ScratchDefault — define default scratch variable values

SYNOPSIS

name value...

DESCRIPTION

The directive sets default scratch variable values. These are initialized and assigned every time a new uses session is created.

DIRECTIVE TYPE AND DEFAULT VALUE

Catalog directive

EXAMPLES

Example: Defining default scratch values

Make Interchange URLs elegant — do not include the session ID information or the "counter", and append .html to pages if it is missing.

ScratchDefault  mv_no_session_id  1 mv_no_count       1
ScratchDefault  mv_add_dot_html   1

To understand this example, see scratch and session glossary entries, and the HTMLsuffix configuration directive.


Example: Using ScratchDefault to define default locale

It is recommended to use this directive for setting the catalog's default locale:

ScratchDefault  mv_locale de_DE

To understand this example, see internationalization and locale glossary entries.


NOTES

AVAILABILITY

ScratchDefault is available in Interchange versions:

4.6.0-5.9.0 (git-head)

SOURCE

Interchange 5.9.0:

Source: lib/Vend/Config.pm
Line 555

['ScratchDefault',   'hash',           ''],

Source: lib/Vend/Config.pm
Line 3181 (context shows lines 3181-3198)

sub parse_hash {
my($item,$settings) = @_;
if (! $settings) {
  return $HashDefaultBlank{$item} ? '' : {};
}

my $c;

if(defined $C) {
  $c = $C->{$item} || {};
}
else {
  no strict 'refs';
  $c = ${"Global::$item"} || {};
}

return hash_string($settings,$c);
}

AUTHORS

Interchange Development Group

SEE ALSO

ValuesDefault(7ic), VarName(7ic)

DocBook! Interchange!