{{ collection:blog }}
<p>index - {{ index }} - {{ date }}<a href="{{ url }}">{{ title }}</a></p>
{{ /collection:blog }}
This case correctly increments index
Environment details (please complete the following information):
Statamic Version 2:11:12
Fresh Install
OS: N/A
Browser: N/A
Web Server: N/A
Additional context
Discussed this with Erin on Statamic Discord (who provided the minimum test examples above) - seems to be a bug with Scope not working for Index. In my text case I wanted to have an index multiple times within a loop, but incrementing a level higher in the code.
Describe the bug
{{index}}
function doesn't increment correctly when scopedTo Reproduce Steps to reproduce the behavior:
This case fails to increment the
index
Expected behavior
This case correctly increments
index
Environment details (please complete the following information):
Additional context Discussed this with Erin on Statamic Discord (who provided the minimum test examples above) - seems to be a bug with Scope not working for Index. In my text case I wanted to have an index multiple times within a loop, but incrementing a level higher in the code.
My specific example:
This should increment the {{loop:index}} every time a new
pastshows
record iterates, but instead it increments within the scope.