Parametric routes allow you to encapsulate multiple pages under the same URL
Parametric pages allow you to encapsulate multiple pages under the same URL.
/{country}/landingPage // landing page that takes country into account
/{lang}/products // product listing page for multiple languages
/{categories}/{blogPost} // custom blog posts separated by categories
The way parametric pages work is:
{country} or {lang} slug or any slug of your choice like {categories}{categories} the connected component has to define a "Route Slug" in the component builderIn the admin panel, create a parametric route: /{country}/landingPage
Then connect the {country} slug to the Country schema.
The “No Route Slug Field configured” warning means the system does not yet know which schema field should be used as the URL slug. This will be fixed in the next step.
Create a Country schema in the CMS.
Example structure:
{
"code": "us",
"name": "United States",
"language": "English"
}
Assume you currently have 3 documents in this schema.
Go to Country schema → Edit Schema
Bind the code field as the Route Slug Field.
This means valid routes will be: /us/landingPage
Invalid routes:
/English/landingPage/United States/landingPageSee Setting up Parametric Routing with a renderer to render parametric pages