Skip to content

Commit ae392ce

Browse files
authored
Merge pull request #742 from ExpressionEngine/feature/7.x/index-variable
Added {index} and {absolute_index} variables to {exp:channel:entries} tag
2 parents 764d83c + 5d00501 commit ae392ce

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
@@ -789,6 +789,10 @@ If five entries are being displayed per page, then for the fourth entry on the s
789789

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

792+
### `{absolute_index}`
793+
794+
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.
795+
792796
### `{absolute_results}`
793797

794798
This variable will always display the absolute total number of results that are returned by the tag, regardless of pagination.
@@ -963,6 +967,10 @@ The date the entry was submitted in GMT. This variable is **not** localized for
963967

964968
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.
965969

970+
### `{index}`
971+
972+
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.
973+
966974
### `{ip_address}`
967975

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

0 commit comments

Comments
 (0)