Dynamic linking

Link elements to a dynamic page and fill its route variables and query parameters from CMS data.

When a link points to a page whose route has variables (like /blog/:slug), the link's advanced settings show Route Variables. Each variable can take a value or a variable from the bound item, for example the item's slug. Links to pages also have Query Parameters (key and value, values can be variables).

How it works

  • Route Variables are stored in the dh-vars attribute; missing route variables are listed automatically.
  • Query Parameters are stored in dh-query.
  • Values accept variables from the element data (the variable picker).

When to use it

  • Card in a blog list linking to its post
  • Link from a post to its author page

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.