4.67. set
4.67.1. Summary
Parameters: name
Positional parameters in same order.
Pass attribute hash as last to subroutine: no
Must pass named parameter interpolate=1 to cause interpolation.
This is a container tag, i.e. [set] FOO [/set]. Nesting: NO
Invalidates cache: YES
Called Routine:
ASP-like Perl call:
$Tag->set( { name => VALUE, }, BODY ) OR $Tag->set($name, $BODY); [set name]
Parameters | Description | Default |
name | DEFAULT_VALUE |
Attributes | Default |
interpolate | No |
reparse | Yes |
Other_Characteristics | |
Invalidates cache | YES |
Container tag | Yes |
Has Subtags | No |
Nests | No |
ASP-like Perl call:
$Tag->set( { name => VALUE_name }, $body );
or similarly with positional parameters,
$Tag->set(name, $attribute_hash_reference, $body);
4.67.2. Description
Sets a scratch variable to value.
Most of the mv_* variables that are used for search and order conditionals are in another namespace -- they can be set by means of hidden fields in a form.
You can set an order profile with:
[set checkout] name=required address=required [/set] <INPUT TYPE=hidden NAME=mv_order_profile VALUE="checkout">
A search profile would be set with:
[set substring_case] mv_substring_match=yes mv_case=yes [/set] <INPUT TYPE=hidden NAME=mv_profile VALUE="substring_case">
Any of these profile values can be set in the OrderProfile files as well.