Count & Sum Items ❺πŸ§ͺ

Count and sum items in your collection lists.

These are 100% internal R&D. No public product is available, but if you need these features, contact us for details on how we can implement them for you.

Use Cases

  • Count the number of items with a specific CMS field

    • Also works with option fields and single-ref fields

  • Sum a specific CMS field, such as price, or quantity

Usage Notes

wfu-calc-method = ( method )

Required. Method is one of;

  • sum - sum of values.

  • count - count of items.

wfu-calc-source = ( source type )

  • selector - a CSS selector

wfu-calc-select = ( css selector )

Required when using a selector source.

Identifies the elements on the page to use

e.g. [result=win]

The value of this identified attribute is typically populated from a CMS-bound custom attribute.

wfu-calc-field = ( field )

Required when using the sum method.

Indicates the attribute to retrieve the data item from.

wfu-preload = ( preload method )

Optional. See preloaders.

Getting Started ( NOCODE )

STEP 1 - Add the Library

First, add the library as detailed in Quick Start.

STEP 2 - Add wfu-404-search to your Search input

Add a Webflow Search element, and on the input field add a custom attribute of wfu-404-search. No value is needed.

Last updated