Hello fellow EE folk,
It seems to me that when using a relationship field variable pair for multiple related entries that there is no “index” variable available like there is inside a grid field variable pair - https://ellislab.com/expressionengine/user-guide/add-ons/channel/grid.html#index
I was only able to use a “count” variable eg.
{exp:channel:entries channel="info" limit="10"}
<h2>{title}</h2>
{relationship_field}
Relationship row count is {relationship_field:count}
Relationship index is {relationship_field:index} - doesn’t work
{/relationship_field}
{/exp:channel:entries}There also doesn’t seem to be a simple way to performing a mathematical operation on the count variable without using a third party plugin. Which is not a big issue but it seems like a logical variable to also support inside the relationship field variable pair since it is supported inside a grid field variable pair.
What do you think?
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.