4.79. tmp

4.79.1. Summary

Parameters: name

Positional parameters in same order.

Pass attribute hash as last to subroutine: no

Interpolates container text by default.

This is a container tag, i.e. [tmp] FOO [/tmp]. Nesting: NO

Invalidates cache: YES

Called Routine:

ASP-like Perl call:

         name => VALUE,


    $Tag->tmp($name, $BODY);

    [tmp name]value[/tmp]
Parameters Description Default
Attributes Default
interpolate Yes
reparse Yes
Invalidates cache YES
Container tag Yes
Has Subtags No
Nests No

Tag expansion example:

    [tmp name]value[/tmp]

ASP-like Perl call:

   $Tag->tmp(  { name => VALUE_name
}, $body  );

or similarly with positional parameters,

    $Tag->tmp(name, $attribute_hash_reference, $body);

4.79.2. Description

Sets a Scratch variable to the value specified in the tag body. This is just as the [seti] tag would do it, except that the name is added to the list of Scratch keys that are to be deleted immediately after the current page has been processed and served. This saves session write time in many cases.

This tag interpolates automatically. (Interpolation can be turned off with interpolate=0.) See also: [tmpn].

IMPORTANT NOTE: the [tmp ...][/tmp] tag is not appropriate for setting order profiles or mv_click actions. If you want to avoid that, use a profile stored via the catalog.cfg directive OrderProfile. name