Coding with SPIP 2.1
SPIP 2.1 Technical Documentation
Home > en > The templates > Useful tags to know

Useful tags to know

Among the many tags that SPIP contains by default, some are used frequently enough to deserve special mention here.

Name Description
#AUTORISER
Checks authorisations
#CACHE
Defines the duration of the cache
#CHEMIN
Retrieves the path to a file
#DESCRIPTIF_SITE_SPIP
Returns the site’s description
#EDIT
Edits content (using the "crayons" plugin)
#ENV
Retrieves an environment variable’s value
#EVAL
Evaluates an expression using PHP
#EXPOSE
Emphasises the element currently being read (in a list or menu)
#GET
Retrieves a value stored with a #SET
#INCLURE
Includes a template
#INSERT_HEAD
Tag for inserting scripts into the HTML <head> section for SPIP or its plugins
#INSERT_HEAD_CSS
CSS insertion tag within the HTML <head> section for plugins
#INTRODUCTION
Displays an introduction
#LANG
Finds out the language code
#LANG_DIR
Returns the writing direction
#LESAUTEURS
Displays the authors of an article
#MODELE
Inserts a layout model
#NOTES
Displays the footnotes created using the [[]] SPIP link
#REM
Inserts a comment in the code
#SELF
Returns the URL of the current page
#SESSION
Recovers data about the session
#SESSION_SET
Defines session variables
#SET
Stores a value, retrievable with #GET
#VAL
Returns a value