The #INTRODUCTION tag displays an extract of the contents of an SQL "text" field (if the table has such a field). For articles, this extract is drawn from the "Brief description" field if it has a value, else from the "Standfirst introduction" field appended by the "Text" field. The extract can also be explicitly defined when writing the content, by framing it with <intro> and </intro> mark-up tags.

An argument can be passed to define the maximum length of the introduction (the default is 600 characters):

  1. #INTRODUCTION{length}


Provide the HTML meta tag "description" with an introductory text about the article pages (example in squelettes-dist/article.html) :

  1. <BOUCLE_principale(ARTICLES) {id_article}>
  2. ...
  3. [<meta name="description" content="(#INTRODUCTION{150}|attribut_html)" />]
  4. ...
  5. </BOUCLE_principale>


Display the 10 most recent articles with an introduction of their contents:

  1. <B_articles_recents>
  2. <h2><:derniers_articles:></h2>
  3. <ul>
  4. <BOUCLE_articles_recents(ARTICLES) {!par date} {0,10}>
  5. <li>
  6. <h3><a href="#URL_ARTICLE">#TITRE</a></h3>
  7. [<div class="#EDIT{intro} introduction">(#INTRODUCTION)</div>]
  8. </li>
  9. </BOUCLE_articles_recents>
  10. </ul>
  11. </B_articles_recents>


Author Mark Baber Published : Updated : 11/03/17

Translations : English, français