Coding with SPIP 3.0
SPIP3.0 Technical Documentation

> > > > Criteria shortcuts

Criteria shortcuts

A criterion can sometimes be written in a simplified form: {criterion}. In such cases, SPIP normally translates this as {criteria=#CRITERIA} (unless a special function has been defined for this particular criterion in ecrire/public/criteres.php).

  1. <BOUCLEx(TABLES){criterion}>...


  1. <BOUCLE_art(ARTICLES){id_article}>...

In this example, {id_article} makes the selection {id_article=#ID_ARTICLE}. Just as with any SPIP tag, #ID_ARTICLE is retrieved, if present, from the closest containing loops, otherwise it is retrieved from the environment, as if you had written #ENV{id_article}.

  • Author :
  • Published :
  • Updated : 12/05/17
  • Translations : English, français