Specificities by object
For the articles, the introduction used is that of the descriptif
field if it is filled in, otherwise it is taken from the chapo
and/ortexte
fields.
For the headings, the introduction used is that of the descriptif
field if it is filled in, otherwise it is taken from the texte
field.
For other editorial objects (news items, words, etc.) the introduction used is that of the texte
field of the object.
Specify a length
By default the #INTRODUCTION tag returns the first 600 characters of the text.
It is possible to specify a cut length by passing the desired value as an argument.
#INTRODUCTION{350}
.
If more than 600 characters
When cutting a text longer than 600 characters, the #INTRODUCTION
tag adds an ellipsis to the extract ((…)
).
It is possible to customize this behaviour with the constant _COUPER_SUITE.
Specify content exactly
This is thanks to the tags <intro>
and </intro>
placed directly in the Text field of the object.
If you wish to specify the introduction explicitly, it is possible to surround the piece of text intended (when writing the text) with the <intro>
and </intro>
tags:
Three nights later old Major died peacefully in his sleep. His body was buried
at the foot of the orchard.
This was early in March. During the next three months there was much
secret activity. <intro>Major’s speech had given to the more intelligent animals on the
farm a completely new outlook on life. </intro>They did not know when the Rebellion
predicted by Major would take place, they had no reason for thinking that
it would be within their own lifetime, but they saw clearly that it was their
duty to prepare for it.
{(George Orwell)}
#INTRODUCTION
, for the text above, will display "Major’s speech had given to the more intelligent animals on the farm a completely new outlook on life."