CMS: About Read-Only URL Paths in Your Collection

3 min read
When you create a dynamic page, the CMS (Content Management System) calculates what the URL will be for any items that could appear on that page. The prefix and dynamic sections of that URL are added to each item in your collection as a calculated field. Calculated fields are read-only and appear on a grey background in the CMS.

The dynamic page you create can display any item whose calculated field is the same as the prefix and dynamic sections you define when you create the page.

Example

Let's say you have a recipe site, and your recipe collection has fields for the recipe name, the course it's served in, and the meal during which it's served. Your collection might look like this:
Now you start building your site and you add a dynamic item page that can display each of your recipes. When you create the item page you use the URL:

https://www.../dishes/{Recipe}

where dishes is a static section and Recipe is the dynamic field you added to the URL to filter on the Recipe field.

When you create the dynamic page, a new field is added to your recipe collection with the name Recipes (Recipe), where Recipes is the collection name and (Recipe) is the dynamic field that you used in your URL. 

Your collection now looks like this:
Each item in your collection has a calculated field that is made up of the the static section in your URL followed by the actual dynamic section for that particular item. Assuming the field you used to make your page has a unique value for each item, each item will have a unique calculated field for that page.

If a visitor navigates to a dynamic item page for your pizza recipe, the URL for that page would be:

yourdomain.com/dishes/pizza

Now you might add a dynamic list page to your site that can display your recipes based on the Meal field using the URL:
https://www.../dishes/meal/{meal}

When you create the dynamic page a new field is added to your recipe collection with the name Recipes Meal (Meal), where Recipes is the collection name, Meal is the static field in your URL that ensures it's unique, and (Meal) is the dynamic field that you used in your URL. 

Your collection now looks like this:
Each item in your collection has a calculated field for your list page. Because list pages display more than one item, multiple items will share the same calculated field. All the items with the same calculated field can appear on the same page.

For example, if a visitor navigates to your meal list page for your lunch recipes, the URL for that page would be:
yourdomain.com/dishes/meal/lunch

In this case, all the items whose calculated field matches the URL sections that appear after the domain name, are associated with that page. For example, all the items with a calculated field of /dishes/lunch are associated with the mydomain.com/dishes/meal/lunch page.
Tip:
When you click a cell in a calculated field, you get a tooltip with a live link to the dynamic page for that item or category.

Did this help?

|