Bug #23608 Duplicate

Fluid variables do not output {count} value if inside a subfield using a {content}{/content} tag pair

Version: 4.2.1 Reporter: creativearc

Seems very similar to bug #23606, https://expressionengine.com/support/bugs/23606/fluid-variables-do-not-output-if-inside-a-subfield-using-a-content-content-tag-pair

(Applying the solution to #23606 does not fix the issue).

Using the {fluid_field:count} in my template seems to produce output only if that particular field uses a single {content} tag. All fields with {content}{/content} pair produce no count output.

{fluid_field}
    {fluid_field:text_input}
     A count is: {fluid_field:count}
     {content}
    {/fluid_field:text_input}

    {fluid_field:grid_field}
     B count is: {fluid_field:count}
     {content}
      {content:headline} Hi EllisLabs!
      {content:caption}
     {/content}
    {/fluid_field:grid_field}
{/fluid_field}

In the above example, if I add multiple instances of ‘A’ (a text input field within a grid), they count properly. But grid field ‘B’, with it’s {content} tag pair, does not output a count value.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases