docs icon indicating copy to clipboard operation
docs copied to clipboard

Missing informations about available variables inside "looping" tags

Open dadaxr opened this issue 3 years ago • 0 comments

Some variable (like "count" / "index" / "last" / "first" / "prev" / "next" etc...) are automatically added and updated inside loopish tags (ie collection / loop / foreach / replicator fields ... )

For now, those variables are mentioned in the documentation for some tags only : ie : for "collection" tag it's mentioned https://statamic.dev/tags/collection#variables) but not for "loop" tag : https://statamic.dev/tags/loop neither for "foreach" tag, and neither for tag working in a "loopish" way (like "assets" or replicator fields for instance).

Instead of replicating available variables related to loop in each of these tag docs maybe it could be wise to add a dedicated page explaining that particular behavior and available variables, and reference that page inside the different tags concerned.

What do you think ?

dadaxr avatar Apr 29 '22 08:04 dadaxr