From 5d00501b7f4be0ea348b65a2bfe99f82c7508c5c Mon Sep 17 00:00:00 2001 From: Yuri Salimovskiy Date: Wed, 4 Oct 2023 17:48:25 +0300 Subject: [PATCH] Added {index} and {absolute_index} variables to {exp:channel:entries} tag --- docs/channels/entries.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/docs/channels/entries.md b/docs/channels/entries.md index 13cade934..12aa330e0 100755 --- a/docs/channels/entries.md +++ b/docs/channels/entries.md @@ -773,6 +773,10 @@ If five entries are being displayed per page, then for the fourth entry on the s **BONUS:** Since the Search module utilizes channel variables, {absolute_count} is also available to the Search Results tag. +### `{absolute_index}` + +Similar to `absolute_count` but starts at 0 instead of 1. So the first entry will have value of "0" and the second entry will have a value of "1" etc. + ### `{absolute_results}` This variable will always display the absolute total number of results that are returned by the tag, regardless of pagination. @@ -947,6 +951,10 @@ The date the entry was submitted in GMT. This variable is **not** localized for The date on which the entry was last edited in GMT. This variable is **not** localized for each user's date settings. See [Date Variable Formatting](templates/date-variable-formatting.md) for more information. +### `{index}` + +Similar to `count` but starts at 0 instead of 1. So the first entry will have value of "0" and the second entry will have a value of "1" etc. + ### `{ip_address}` The IP address of the author when they posted the entry.