2.0 Beta

Smootify 2.0 is in public beta. Your 1.x store keeps working. Move when you want.

What changed

smootify-search-page

Full search results page driven by the query in the url or its text inputs (2.0: type="search" too), filled with the query, with count and pagination.

v2.0 betaAdd-on: Search
Open .md
On this page
  1. At a glance
  2. Where it can go
  3. What it requires
  4. Fields in the form
  5. Attributes on the element
  6. Attributes inside it
  7. State classes
  8. Loading

At a glance

Results

  • search="count"12, the number of results
  • search="query"linen, the searched words
  • search="empty-state"hidden

No results

  • search="count"0
  • search="query"xyzzy
  • search="empty-state"shown

No words

  • search="empty-state"shown: the page searches nothing
data-action="previous"data-action="next"

Previous and next

Shows
One page at a time.
data-action="page"

Page numbers

Shows
One page at a time, with numbers to jump to. See below.
data-action="load"

Load more

Shows
The next page, added below the products shown, on a click.
data-action="load-in-view"

Load as the visitor scrolls

Shows
The next page, added below when the button scrolls into view.

More in the guide.

Where it can go

  • Anywhere on the page.
  • Must contain smootify-product.
  • Out of place, Smootify removes it from the page.

What it requires

  • The Search extension (lite or server plan, or the extension activated in the Smootify dashboard). Without it, the element does nothing.

Fields in the form

Each field’s Name setting in Webflow tells Smootify what the field holds. It is a setting of the field, not a custom attribute.

NameFieldWhat it does
every input[type="text"] (any name)Text fieldRenamed q, prefilled from ?q=; the first filled one is the query.

Attributes on the element

  • It reads data-wait, limit, disable-scroll, disable-scroll-on-load-more, auto-close-details, avoid-webflow-restart, page-range, animation, easing, duration, stagger, unavailable-products.

Attributes inside it

GroupAttribute nameValues
Loadingskeleton5
Search pagesearch5

State classes

Smootify toggles inited, is-empty, is-filtered, has-pagination, has-page-numbers, has-query, is-single-result on it: style them in Webflow for each state. See State classes.

Loading

Its code loads only on pages that have smootify-search-page.

    ↑ ↓ to moveEnter to openEsc to close