For the complete documentation index, see llms.txt. This page is also available as Markdown.

Record List

Render product records with templates, redirects, and click tracking.

Documentation

API reference

ff-record-list

Properties
Property
Description

subscribe (String, default "true")

Set "false" to dispatch your own data.

records (Array)

Record objects returned by FactFinder.

ssr (Boolean)

Enables SSR mode.

Events and methods
Event or method
Description

loadNextPage()

Loads the next page.

dom-updated

Fires after new data and templates render.

ff-record

Properties
Property
Description

record-data (Object)

Record returned by FactFinder.

add-cart-click / add-checkout-click (Boolean)

Enables tracking for that click.

Directives
Directive
Description

data-redirect / data-redirect-target

Redirects to a product page and configures its target.

data-track

Sends tracking on click.

data-image / data-anchor

Binds an image src or anchor href.

disable-overwrite

Restores normal anchor behavior without tracking.

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.

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

API code

ff-record-list

Properties

Properties
Name
Description

subscribe (String, default: "true")

Set "false" to dispatch your own record data.

records (Array)

Record data returned by FactFinder.

ssr (Boolean)

Enables server-side rendering mode.

Methods

Methods
Name
Description

loadNextPage()

Loads the next page.

Events

Events
Name
Description

dom-updated

Fires after new data and templates render.

ff-record

Properties

Properties
Name
Description

record-data (Object)

Record object returned by FactFinder.

add-cart-click (Boolean)

Enables cart-click tracking.

add-checkout-click (Boolean)

Enables checkout-click tracking.

Directives

Directives
Name
Description

data-redirect

Redirects to a product page when a valid URL is provided.

data-redirect-target

Configures the redirect target.

data-track

Sends a tracking request when clicked.

data-image

Binds an image src from record data.

data-anchor

Binds an anchor href from record data.

disable-overwrite

Restores default anchor behavior without tracking.

Last updated

Was this helpful?