DocsDisplay & editing · FQL
On this page

Add list controls

Set item limits, selectors and pagination.

Before you begin: Render repeated content.

Settings list limits

Give a settings-backed component one direct child for each item its design supports. Three authored children allow up to three saved items. Text nodes and comments do not count. The first child remains the item template; all children provide the initial content.

You can set a smaller limit with data-frontbacked-settings-max-items. The effective maximum is the smallest of:

  • The number of direct child elements authored in the component.
  • A positive whole-number data-frontbacked-settings-max-items, when provided.
  • 50 items, the maximum allowed for any settings array.
index.html

This component allows two saved slides. Without the attribute, it allows three. Setting the attribute to 100 still allows only three. To increase capacity, add authored children, up to the 50-item ceiling. Invalid attribute values do not remove the child-count limit.

The page editor disables Add item at the limit. Saves are also checked against the selected theme version's source, so changing the page in browser developer tools cannot raise the limit. An oversized save is rejected rather than silently shortened. Empty lists are allowed, and resetting a setting restores its theme defaults.

These limits also apply to $state selectors backed by $settings and to nested f-list="$.features" arrays inside a settings item. Each nested component has its own child count and optional maximum. If a page uses the same settings array in multiple components, its smallest declared limit applies when saving.

Save each declared setting through the page editor; replacing an entire parent settings object or saving a list as an object is not supported. For large or growing collections, use posts rather than settings lists.

List Selectors

Use one selector object for source, filtering, sorting, and limits:

FQL state configuration

Add this configuration inside your page’s {STATE} declaration. Inspect state shows its configuration; live queries and saved data run against your local site. Try a complete FQL page →

Plain keys inside $where are equality checks. Comparison suffixes include $gt, $gte, $lt, $lte, and $ne. $and and $or accept arrays for grouped logic.

Pagination

Use f-insert-pagination or f-replace-pagination to let Frontbacked generate responsive pagination controls for a list.

index.html

You can also target the selector expression: <div f-insert-pagination="$state.categoryProducts"></div>. Use f-replace-pagination when the host element itself should become the generated pagination UI.

Binding Tips

Keep fallback text in the HTML so the page has a sensible first paint before Frontbacked initializes.

Use f-attr-* for links, images, ARIA state, and data attributes. Use f-text for visible text.

Put f="true" only on elements that need Frontbacked rendering. For lists, include it on the list root and on controlled elements inside the template.

Continue with Name editable fields.