Collection as global variable

Cache a collection's items in a global variable available on every page, as an array or keyed by id or slug.

The Variable setting stores the collection's items in a site-wide variable, so they can be used anywhere without adding a source.

How it works

  • Formats: Array, Object (ID), Object (Slug).

When to use it

  • Site settings or navigation stored in a collection
  • Lookup tables used across pages

Availability

  • Works in Designer.
  • Included in the Business and Professional plans.
  • Limits: CMS items: up to 5,000 on Business and 50,000 on Professional. Starter has no CMS.

Related features.

No card needed

Build it today.Pay when it goes live.

Every feature is unmetered while you build. Checkout opens the first time you publish.