Skip to main content

Destination

Returns attributes for selected Destination, for example in search bar.

note

Theme v3+ pages are cached without query parameters. Selection and other param-driven behavior is not set in Liquid. Use JavaScript to read URL params and call the Public API v2 endpoints instead: /reference/public-api/destinations and /reference/public-api/search.

Example

<option
{% if destination.selected %}
selected="selected"
{% endif %}
value="{{ destination.id }}">
{{ destination.title }} ({{ destination.count }})
</option>

Available attributes

NameTypeDescription
ancestorsCollectiondestination's ancestors
childrenCollectiondestination's children destination
contentStringdestination's content
countIntergernumber of rentals within this destination
handleStringdestination's handle. This is the destination's title in lowercase with any spaces and special characters replaced by hyphens (-).
idIntegerdestination's uniq identifier
page_titleStringdestination's page title
page_descriptionStringdestination's page description
parentDestinationdestination's parent destination
photosCollectioncollection of all destination's photos
selectedBooleandefined if a destination is currently selected or not (theme v2 and earlier)
titleStringdestination's title
urlStringdestination's URL

Destination Locale

Available attributes:

  • url

Destination Locales

Available attributes:

  • available
  • default