The #COMPTEUR_BOUCLE tag returns the current iteration number of the loop.

This tag could therefore be used to number and count the results returned by a loop:

<BOUCLE_art(ARTICLES) {par date} {inverse} {0,10}>

In the case of a loop with paging, #COMPTEUR_BOUCLE returns the iteration number incorporating the global paging.


<BOUCLE_art(ARTICLES) {!par date} {pagination 10}>

If we look at page #3 of results, #COMPTEUR_BOUCLE returns indices 31, 32, ....

See also



L’article sur Le système de pagination

Author Mark Published : Updated : 20/07/23

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