About Dynamic Pages and Code

Dynamic pages are pages automatically populated based on collection data. You can create dynamic item pages that display individual collection items or dynamic list pages that show filtered subsets of items.

Use dynamic pages when you want to create multiple pages based on collection data without manually building each page. Dynamic pages work with datasets and the Dynamic Dataset API to provide programmatic access to page data and navigation functionality.

Access dynamic data

Dynamic pages automatically connect to collection data through dynamic datasets. You can access the current item's data or any other data connected through the dataset and work with it using standard dataset methods.

Dataset API additions

Dynamic pages use the DynamicDataset API, which extends the standard Dataset API with the getPreviousDynamicPage() and getNextDynamicPage() methods for dynamic page navigation.

Hooks for dynamic pages

Dynamic pages support specialized hooks that run when pages load or when visitors navigate between dynamic pages. These hooks allow you to customize page behavior, validate URLs, handle missing items, and implement custom logic for dynamic page routing.

Learn more about dynamic page hooks and how to create them.

See also

Did this help?