Révisions :
« introduction:description : couteauprive - en »
Révisions
Différences entre version No3 et version No2
This tag can be used in templates to generate short summaries of articles, new items, etc., typically on the home page or in sections < sections</p >
Beware
Beware : If you have another plugin defining the function balise_INTRODUCTION() or if you have defined it in your templates, you will get a compilation error.
@puce@ You can specify (as a percentage of the default value) the length of the text generated by the tag #INTRODUCTION. A null value, or a value equal to 100 will not modify anything and uses the following default values : 500 characters for the articles, 300 for the news items and 600 for forums or sections. [1]
[2]
@puce@ By default, if the text is too long, #INTRODUCTION will end with 3 dots (an ellipsis) : <html >" (…)"</html " (…)"</html >. You can change this to a customised string which indicates that there is more text available. [3]
[4]
@puce@ If the #INTRODUCTION tag is used to give a summary of an article, the Swiss Army Knife can generate a link to the article for the 3 dots or string that indicates that there is more text available. For example : "Read the rest of the article…" [%" id="nh5">5] article …"
[6]