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):
Example
Provide the HTML meta tag "description" with an introductory text about the article pages (example in squelettes-dist/article.html) :
<BOUCLE_principale(ARTICLES) {id_article}>
...
[<meta name="description" content="(#INTRODUCTION{150}|attribut_html)" />]
...
</BOUCLE_principale>
Display the 10 most recent articles with an introduction of their contents:
<B_articles_recents>
<h2><:derniers_articles:></h2>
<ul>
<BOUCLE_articles_recents(ARTICLES) {!par date} {0,10}>
<li>
<h3><a href="#URL_ARTICLE">#TITRE</a></h3>
[<div class="#EDIT{intro} introduction">(#INTRODUCTION)</div>]
</li>
</BOUCLE_articles_recents>
</ul>
</B_articles_recents>