Syntax
Sections
The templates
SPIP generates HTML pages from templates, which each contain a mixture of HTML, SPIP loops and criteria, and SPIP tags and filters. The major (...)
Articles
The syntax of loops
A loop declares both a database table from which to extract information as well the criteria for selection. spip ... for each object ... (...)
Polyglots (multi tags)
A in english ```
This means that multilingual elements can easily be written within templates without needing to use language codes and (...)The complete syntax of language codes
The complete syntax is as shown below: spip <:prefixe:codeparam=value|filtreparams:>
Parameters
The language codes can receive (...)Criteria syntax
The loops criteria for are written between curly brackets just after the tables names. spip
Any SQL field in a table can become a selection (...)Accessing a declared database
Every additionally declared database can be accessed using SPIP loops as follows: <BOUCLE_externe(name:TABLE)>
The name parameter (...)Tag syntax, the definitive version
Just like loops (boucles), tags often have optional components, and can sometimes also accept parameter arguments. Asterisks can be applied to (...)
Filter syntax
Filters are applied to tags by using the pipe (“|”) character. Their effect is to call a PHP function, either one which is in the standard PHP (...)
Using the language codes
Any language idiom (externally defined character strings) can be referenced in a SPIP template file using this syntax: spip (...)
Forcing joins
SPIP’s automatic detection capabilities are sometimes limited, and so two syntax variants are offered for forcing table joins or the fields of (...)
Contents of parent loops
Sometimes it’s useful to retrieve contents from a loop which is a parent of the current loop, just by using an ordinary SPIP tag. SPIP offers a (...)