Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added {index} and {absolute_index} variables to {exp:channel:entries} tag #742

Open
wants to merge 1 commit into
base: 7.dev
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions docs/channels/entries.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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.
Expand Down