Page Templates and Slots
Page Templates
Developers can create templates in the page type definition. A template consists of slots, fixed parts of the page with names, labels, and specified minimum and maximum numbers of blocks and allowed bricks. Slots can be editable or non-editable and may include default content.
Templates are ideal for pages like e-commerce product details, which combine fixed sections (potentially fetching data from external APIs) with flexible areas for content editors to customize.
Rendering Single Slots
Rather than rendering an entire page using the React Bricks Page Viewer, it's possible to render individual slots. This approach allows for the interweaving of React Bricks editable parts with other React code. For more information, refer to the Page Templates Documentation.