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
- The mes_options.php file
(SPIP) - the full list of constants and customisation variables in the glossary.
(http://www.spip.net/@#groupe13)
Les balises
— Envoyé par SPIP (https://www.spip.net/)