[SPIP] Proposé : #CONST

SPIP

Article proposé

L’article « #CONST
(SPIP) » est proposé
à la publication depuis le vendredi 23 décembre 2022.


#CONST

vendredi 23 décembre 2022 , par jack

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

Sommaire

  • Examples
  • See also

Examples|Retour au sommaire

// 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

 (http://www.php.net/define)

(


'_ID_MOT_TRUC'


,

xx

)


;

then in a template

<BOUCLE_art(ARTICLES)

{id_mot=

#CONST

{_ID_MOT_TRUC}}

…

See also|Retour au sommaire

Les balises

— Envoyé par SPIP (https://www.spip.net/)


rubon199-7e493.jpg