Skip to main content

search.liquid

The search.liquid template is used to display the results of a rentals search request.

note

Theme v3+ does not read Liquid parameters on this page to improve cacheability. Use JavaScript to read query parameters and call the Public API v2 search endpoints instead: /reference/public-api/search.

Parameters

These parameters are only used by theme v2 and earlier.

NameTypeDescription
checkinDate (ISO 8601)Checkin date
checkoutDate (ISO 8601)Checkout date
debugBooleanDebug mode. Default = 0
displayStringDisplay type
guestsIntegerAdults number
max_priceIntegerMaximum price
min_priceIntegerMinimum price
rental_type[]ArrayArray of rental types
sort_byStringSort by ...

Amenities

If you want to filter your results by amenities you can add amenity's key as a boolean parameter.

e.g: air_conditioning=1

List of amenities key:

  {% for amenity in SearchForm.amenities %}
{{ amenity.id }}
{% endfor %}