Skip to content

Commit 5d00501

Browse files
committed
Added {index} and {absolute_index} variables to {exp:channel:entries} tag
1 parent efdeff0 commit 5d00501

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

docs/channels/entries.md

+8
Original file line numberDiff line numberDiff line change
@@ -773,6 +773,10 @@ If five entries are being displayed per page, then for the fourth entry on the s
773773

774774
**BONUS:** Since the Search module utilizes channel variables, {absolute_count} is also available to the Search Results tag.
775775

776+
### `{absolute_index}`
777+
778+
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.
779+
776780
### `{absolute_results}`
777781

778782
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
947951

948952
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.
949953

954+
### `{index}`
955+
956+
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.
957+
950958
### `{ip_address}`
951959

952960
The IP address of the author when they posted the entry.

0 commit comments

Comments
 (0)