Dynamic Pages
This article explains how to create a smooth experience for users by linking metadata types, such as categories or tags, to filtered content pages using dynamic URL parameters.
Dynamic Pages
Dynamic pages work by passing a unique identifier (ID or Slug) of a content set, model, or metadata value through the page URL when a user clicks on an element in a list.
This method is commonly used with the Metadata List Block, Set List Block, and Model List Blocks. That value is then used on the destination page by a Set View Block or a Model View Block to filter content dynamically based on the ID or Slug in the URL.
Let's take a video list and a video gallery as an example, and walk through the process from a user's perspective.
A list of possibilities
On the Videos page provided with the Helpful Hands Tour Theme, there is a Set List Block with the Click Destination on the Design tab set to Video Set (/video/:slug).
Once a visitor clicks on a set in the set list, they are taken to the /video/:slug page with the slug of the content set in the URL.
Destination Page
The page in your CMS, which in this case is the Video Set page, contains a Set View Block filtered to the ID or Slug in the URL. You'll notice that there is only a single video set page in the Helpful Hands Theme. This is because of the dynamic parameter in use, meaning you don't have to make a page for every content set in your CMS.
/video/:slugThe ":slug" part will be replaced with the content set's name.
Related Articles
ThemesSet List BlockSet View BlockLast updated
Was this helpful?