Skip to main content

Dynamic Pages

Dynamic pages are single-templated pages that can load different information based on which parameter you pass through the URL. This parameter can target a particular content fragment or set of content fragments to build the details of the page. 

This allows authors to build a single page, and then automatically author multiple pages simply by adding additional content fragments to their library. 

Take a look at the link below, the page renders a Puppies content fragment named "puffy". The link below includes "puffy" in the URL. This is how a dynamic page can render details of a content fragment, while the page is the same. In the second link, a sifferent Puppies content fragment is rendered for the content fragment named "carl". Notice the value "puffy" is swapped out for the value of "carl". If no content fragment name is passed in the URL, then the dynamic page will not render any information.

Puffy Puppies Content Fragment (.../dynamic-pages/puppy-profile.puffy.html)

Carl Puppies Content Fragment (.../dynamic-pages/puppy-profile.carl.html)

No Content Fragment name passed in URL (.../dynamic-pages/puppy-profile.html)

More examples of components that utilize dynamic pages can be found below: