Record List
Render product records with templates, redirects, and click tracking.
Documentation
API reference
ff-record-list
ff-record
Overview
Use the ff-record and ff-record-list elements to design a template for each record. Access record data, such as name, price, and rating, with Mustache syntax: {{record.xxx}}. The available values are defined in the FactFinder backend. They match the field names from the imported feed.
Adding images
Use the data-image attribute to display an image. Set its value to the data binding for the image URL field. This example uses the ImageName field.
Add data-image-onerror to specify an error image. It displays when the image URL cannot be loaded.
Redirecting to a product page
Use data-redirect for product redirects. This attribute also sends the tracking request.
Set data-redirect-target to any HTML-compliant target value: _blank, _self, _parent, _top, or a frame name.
Adding links
Use data-anchor rather than href to add product links. It sets the href attribute from the record data.
Normal href behavior is disabled by default. Add disable-overwrite to ff-record to restore it.
Adding tracking
Use data-track to send tracking requests from ff-record. This is useful when you want to track a click without redirecting the user.
Cart and checkout tracking
Add add-cart-click, add-checkout-click, or both to ff-record. Use data-track="cartClick" or data-track="checkoutClick" on any descendant element.
Add data-track-count to read the number of products being added or checked out. Set its value to the element property that holds the count, such as textContent, innerHTML, or value.
Without a value, data-track-count reads the element's value property. If no value exists, it defaults to 1.
Server-side rendering
Enable server-side rendering with the ssr attribute.
For integration details, see Server Side Rendering.
Demo
Try the Record List demo.
API code
ff-record-list
Properties
Methods
Events
ff-record
Properties
Directives
Last updated
Was this helpful?