I'm getting some odd behaviour from my Grid field in the template (unless I'm misunderstanding the Grid docs). I have a custom Grid field used for placing images (columns are file, alt text and caption). In one of my channel entries I have three images set via this field. The following template code displays all three images, as expected:
{my_image_grid}
<figure>
<img src="{my_image_grid:file}" alt="{my_image_grid:alt}">
<figcaption>{my_image_grid:caption}</figcaption>
</figure>
{/my_image_grid}
And, also as expected, this code displays only the contents of the first row of the grid field:
{my_image_grid row_id="1"}
<figure>
<img src="{my_image_grid:file}" alt="{my_image_grid:alt}">
<figcaption>{my_image_grid:caption}</figcaption>
</figure>
{/my_image_grid}
However, when I try to display all rows other than row 1, with the following:
{my_image_grid row_id="not 1"}
<figure>
<img src="{my_image_grid:file}" alt="{my_image_grid:alt}">
<figcaption>{my_image_grid:caption}</figcaption>
</figure>
{/my_image_grid}
I get just the first row again. Just the first row is also displayed if I try to display a specific row other than 1:
{my_image_grid row_id="3"}
<figure>
<img src="{my_image_grid:file}" alt="{my_image_grid:alt}">
<figcaption>{my_image_grid:caption}</figcaption>
</figure>
{/my_image_grid}
Can anyone else verify this behaviour before I report it as a bug? Or am I doing something wrong (eg. misunderstanding how rows are ID-ed)? This is EE 2.7.2.
Thanks.