Im trying to get the count of the next and previous fields inside a Fluid Field. In the documentation there is only a variable to count the current field (E.g.: fluid_content:count), and also a variable to get the next and previous field_name or field_type (E.g.: next_field_name, prev_field_type). I’m wondering why isn’t there any variable to get the next or previous field count (E.g.: next_field_count), as there is a variable with that same function for rows in Grid Fields, but for some reason it is not available for Fluid Fields, I think it would be a useful variable.
Link to the actual documentation for Fluid Field variables: https://docs.expressionengine.com/latest/fieldtypes/fluid.html#variables
Juan, please open a Feature Request on GitHub with your idea for consideration in future releases.
Though I think what you want is really a tag pair similar to Grid’s next_row
, which allows you to access more than just a count for the next row being displayed. Accessing the count only isn’t of much value as it will always be just 1 more than the current field being displayed.
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.