4.15. control_set
Bulk-sets scratchpad variables on the scratchpad page specified by 'index'. Note that, unlike [control], this does not copy values from scratch.
4.15.1. Summary
This example sets var_one, var_two and var_three in the scratchpad on page 5 (index begins with 0).
[control_set index=4] [var_one]var_one_value[/var_one] [var_two]var_two_value[/var_two] [var_three]var_three_value[/var_three] [/control_set]
Parameters: index
Positional parameters in same order.
The attribute hash reference is passed after the parameters but before the container text argument. This may mean that there are parameters not shown here.
Must pass named parameter interpolate=1 to cause interpolation.
This is a container tag, i.e. [control_set] FOO [/control_set]. Nesting: NO
Invalidates cache: no
Called Routine:
ASP-like Perl call:
$Tag->control_set( { index => VALUE, }, BODY ) OR $Tag->control_set($index, $ATTRHASH, $BODY); [control_set index other_named_attributes]
Parameters | Description | Default |
index | DEFAULT_VALUE |
Attributes | Default |
interpolate | No |
reparse | Yes |
Other_Characteristics | |
Invalidates cache | no |
Container tag | Yes |
Has Subtags | No |
Nests | No |
Tag expansion example:
[control_set index] --- TODO: (tag result)
ASP-like Perl call:
$Tag->control_set( { index => VALUE_index }, $body );
or similarly with positional parameters,
$Tag->control_set(index, $attribute_hash_reference, $body);
4.15.2. Description
Bulk-sets scratchpad variables on the scratchpad page specified by 'index'. Note that, unlike [control], this does not copy values from scratch.