#SET{variable,value}
is used to store values locally within a template. They are retrievable, within the same template, using #GET{variable}
. See also #GET.
#SET
Example
Store the value of a colour that already exists in the environment, otherwise use a default colour:
#SET{light,##ENV{light_colour,edf3fe}}
#SET{dark,##ENV{dark_colour,3874b0}}
<style class="text/css">
#contenu h3 {
color:[(#GET{light})];
}
</style>
Author Published : 08/12/09 Updated : 12/03/23
Translations : English, français, Nederlands