From 85db33d1d6cbec9a7888adc81b1390111f8ed3d1 Mon Sep 17 00:00:00 2001 From: Yuri Salimovskiy Date: Thu, 27 Jul 2023 11:56:32 +0300 Subject: [PATCH 1/2] Added more variables to address position of field in group inside Fluid field --- docs/fieldtypes/fluid.md | 26 +++++++++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) diff --git a/docs/fieldtypes/fluid.md b/docs/fieldtypes/fluid.md index 4eecf99cb..62ec25087 100755 --- a/docs/fieldtypes/fluid.md +++ b/docs/fieldtypes/fluid.md @@ -175,7 +175,31 @@ Alias of `:current_fieldtype`. The total number of fields regardless of tag output criteria. -Additionally, the following variable are available when using custom field groups: +Additionally, the following variable are available **when using custom field groups**: + +### `count_in_group` + + {fluid_content:count_in_group} + +The "count" out of the field being displayed in current field group. If five fields are in group, then for the fourth field the `count` variable would have a value of "4". + +### `first_in_group` + + {fluid_content:first_in_group} + +True, if the current field is the first one in current field group. + +### `index_in_group` + + {fluid_content:index_in_group} + +The index of the field being displayed in current field group starting at 0. + +### `last_in_group` + + {fluid_content:last_in_group} + +True, if the current field is the last one in current field group. ### `first_group` From 2d89ef3a804615843b04fbf86d7d8217957ba3a6 Mon Sep 17 00:00:00 2001 From: Bryan Nielsen Date: Thu, 8 Feb 2024 14:44:31 -0500 Subject: [PATCH 2/2] Update fluid.md --- docs/fieldtypes/fluid.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/fieldtypes/fluid.md b/docs/fieldtypes/fluid.md index 62ec25087..65ec48d7f 100755 --- a/docs/fieldtypes/fluid.md +++ b/docs/fieldtypes/fluid.md @@ -181,25 +181,25 @@ Additionally, the following variable are available **when using custom field gro {fluid_content:count_in_group} -The "count" out of the field being displayed in current field group. If five fields are in group, then for the fourth field the `count` variable would have a value of "4". +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". ### `first_in_group` {fluid_content:first_in_group} -True, if the current field is the first one in current field group. +True, if the current field is the first one in the current field group. ### `index_in_group` {fluid_content:index_in_group} -The index of the field being displayed in current field group starting at 0. +The index of the field being displayed in the current field group starting at 0. ### `last_in_group` {fluid_content:last_in_group} -True, if the current field is the last one in current field group. +True, if the current field is the last one in the current field group. ### `first_group`