We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

How to get total_results for a fluid field {content} tag pair?

How Do I?

JCOGS Design's avatar
JCOGS Design
71 posts
6 years ago
JCOGS Design's avatar JCOGS Design

Does anyone know if there is a way to get either total_results or an equivalent from a {content} variable pair within a fluid field? content:count gives the loop count, but content:total_results delivers null response… would be tedious to have to run the loop twice just to count the entries.

Thanks in advance for any help with this.

       
Robin Sowell's avatar
Robin Sowell
13,158 posts
6 years ago
Robin Sowell's avatar Robin Sowell

Hrm- does {fluid_content:total_fields} work or if not, how’s it off?

       
JCOGS Design's avatar
JCOGS Design
71 posts
6 years ago
JCOGS Design's avatar JCOGS Design

{fluid_content:total_fields} gives you the total number of fluid fields defined for that channel entry - useful, but not what I’m looking for. Turns out you need {content:total_rows} - not really documented, but does appear in an example on the Fluid Fields documentation page.

       
Robin Sowell's avatar
Robin Sowell
13,158 posts
6 years ago
Robin Sowell's avatar Robin Sowell

Ah! And I’ll get that variable added!

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.