Skip to main content

Types of Pages

Fixed vs dynamic page structure

If you want to allow your users to change the page structure, in terms of the components that compose it, you can create a dynamically structured page. If not, you can create a fixed structure page.

In the dynamic structure page it is sufficient to insert, on the frontend side, a special component <DiscoveryComponents/> provided by the Discovery Connector. This component receives the page structure via API and automatically renders the components that have been chosen sul backend. However, you don't always want to offer this degree of freedom to the user. In this case, you create a traditional page with the web framework, deciding its components a priori, and through the connector only the configuration data is used of the components (e.g. labels, texts), but it is not possible to change the components of the page.

This decision can also be made on a page-by-page basis, i.e. it is possible to have dynamic pages and pages with a fixed structure.

Static-generated vs Dynamically Generated

With Discovery CMS it is possible to build both static and dynamic sites. The difference is when the API is invoked, i.e. whether at the site build level or dynamically when vi users log in. To generate static sites, the web framework must support it. For example, with NextJS it is It is possible to have both static and dynamic pages, while using ReactJS the pages can only be dynamic.

It is also possible to use mixed approaches.