[ar] [ast] [bg] [br] [ca] [co] [cpf] [cs] [da] [de] [en] [eo] [es] [eu] [fa] [fon] [fr] [gl] [id] [it] [ja] [lb] [nl] [oc] [pl] [pt] [ro] [ru] [sk] [sv] [tr] [uk] [vi] [zh] Espace de traduction



February 2016

All the versions of this article:

The filter |set{name} affects the current value of the variable name. It is sometimes more convenient alternative, to the tag #SET{name,value}.


[(#GET{lenght}) characters]

is the equivalent to

[(#GET{lenght}) characters]

The second argument of the |set{} filter, if not null, indicates to "continue", that is, pass the value in the sequence of filters, or display it if placed at the end of the chain:

[(#TEXTE*|set{plain,1}|propre|set{process,1}|mb_strlen|set{lenght,1})] stores the plain text in the variable plain, the text processed in process, the number of characters in lenght, and eventually displays the value lenght.
See also |setenv


The |set filter was introduced in SPIP 2.1 and SPIP 3 on 3 June 2014.

Show the template of this page Site powered by SPIP | Translation area | Private area