Skip to content

Commit c6ea469

Browse files
authored
Merge pull request #712 from ExpressionEngine/feature/7.x/fluid-field-group-variables
Added more variables to address position of field in group inside Fluid field
2 parents 4e7d23c + 2d89ef3 commit c6ea469

File tree

1 file changed

+25
-1
lines changed

1 file changed

+25
-1
lines changed

docs/fieldtypes/fluid.md

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,31 @@ Alias of `:current_fieldtype`.
175175

176176
The total number of fields regardless of tag output criteria.
177177

178-
Additionally, the following variable are available when using custom field groups:
178+
Additionally, the following variable are available **when using custom field groups**:
179+
180+
### `count_in_group`
181+
182+
{fluid_content:count_in_group}
183+
184+
The "count" out of the fields being displayed in a field group. If five fields are in a group, then for the fourth field the `count` variable would have a value of "4".
185+
186+
### `first_in_group`
187+
188+
{fluid_content:first_in_group}
189+
190+
True, if the current field is the first one in the current field group.
191+
192+
### `index_in_group`
193+
194+
{fluid_content:index_in_group}
195+
196+
The index of the field being displayed in the current field group starting at 0.
197+
198+
### `last_in_group`
199+
200+
{fluid_content:last_in_group}
201+
202+
True, if the current field is the last one in the current field group.
179203

180204
### `first_group`
181205

0 commit comments

Comments
 (0)