#CONST

The #CONST{constant_name} tag returns the value of the constant passed as an argument.

  • New in : SPIP 3.2

Examples

// See the content of the Composed-By part of the HTTP header of pages generated by SPIP
#CONST{_HEADER_COMPOSED_BY}

will return by default Composed-By: SPIP

Other example
In the config/mes_options.php file :

define('_ID_MOT_TRUC',xx);

then in a template

<BOUCLE_art(ARTICLES){id_mot=#CONST{_ID_MOT_TRUC}}…>

See also

The mes_options.php file

  • the full list of constants and customisation variables in the glossary.

The tags

Author jack Published : Updated : 07/09/23

Translations : English, français, Nederlands