Coding with SPIP 3.0
SPIP3.0 Technical Documentation

> > > > #MODELE

#MODELE

#MODELE{name} inserts the results of a template contained in the modeles/ directory. The identifier of the parent loop is passed by default with the "id" parameter to this code inclusion.

Additional arguments can be passed:

  1. // preferred format
  2. [(#MODELE{name, argument=xx, argument})]
  3. // alternative format, to be avoided
  4. [(#MODELE{name}{argument=xx}{argument})]

Download

These inclusions may also be called within the body text of an article (with the correct syntax), which means that article authors can optionally include particular models as and when they choose:

  1. // XX is the identifier of the object to pass.
  2. <nameXX>
  3. // arguments using | (pipes)
  4. <nameXX|argument=xx|argument2=yy>

Download

Example

List the various translations of an article, with a link to each of them:

  1. <BOUCLE_art(ARTICLES){id_article}>
  2. #MODELE{article_traductions}
  3. </BOUCLE_art>

Download

  • Author :
  • Published :
  • Updated : 04/06/10
  • Translations : English, français