ScratchDefault — define default scratch variable values
The directive sets default scratch variable values. These are initialized and assigned every time a new uses session is created.
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.
Interchange 5.9.0:
Source: lib/Vend/Config.pm
Line 3188 (context shows lines 3188-3205)
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); }