[SPIP] PUBLISHED : #CONST

SPIP

Article validated

The article « #CONST (#CONST - SPIP) » was
validated by George.


#CONST

Monday 26 December 2022 , by jack

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

Table of contents

  • Examples
  • See also

Examples|Back to the table of contents

// 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|Back to the table of contents

The tags

— Sent by SPIP (https://www.spip.net/)


rubon199-7e493.jpg