#TOTAL_BOUCLE

The #TOTAL_BOUCLE tag returns the total number of results displayed by the loop.

It can be used in a loop in one of the optionalsections — either before or after — or even in the alternative section after the loop.
For example, to display the number of documents linked to an article:

<BOUCLE_art(ARTICLES){id_article}>
  <BOUCLE_doc(DOCUMENTS) {id_article}></BOUCLE_doc>
    [There are (#TOTAL_BOUCLE) document(s).]
  <//B_doc>
</BOUCLE_art>

Caution: in the example above, you will notice the space between the elements <BOUCLE_doc...>[space here]</BOUCLE_doc>. This is because you always need something between these two elements for the loop to run. Usually this is a #TITRE, #TEXTE, etc. tag.
Here, a space is enough.


See also

The tags

Author Mark Published : Updated : 20/07/23

Translations : عربي, català, English, Español, français, Nederlands