Configure the Registry (Widths & Spacers)#
cs_dynamicpages avoids hardcoding CSS classes for layouts. Instead, it relies on a central configuration registry where site administrators can define exactly which spacing utilities and width constraints are available to content editors.
By default, the add-on ships with standard Bootstrap 5 utility classes (e.g., mt-3, pb-5, col-md-8 offset-md-2). If your theme uses a different CSS framework (like Tailwind, Bulma, or a custom grid), you can easily update these values.
Accessing the Control Panel#
Log into Plone as a Site Administrator or Manager.
Navigate to Site Setup -> Dynamic Pages Control Panel.
Here, you will find several tabs:
Row type fields: Mappings of views to their visible fields (see Create a Custom Row View).
Row widths: Definitions for the
Widthdropdown on rows.Spacers: Definitions for top/bottom margins and paddings.
Modifying Row Widths#
When a content editor creates a row, they can choose its width. The default options are usually "Full width", "Centered", and "Narrow".
To change these or add new ones to match your theme:
Go to the Row widths tab.
You will see a DataGrid (a table of rows).
To add a new width, click Add.
Row Width Label: This is what the editor sees in the dropdown (e.g., "Extra Narrow").
Row Width CSS class: This is the exact CSS class injected into the row's wrapper
<div>(e.g.,col-md-4 offset-md-4ormax-w-prose mx-auto).
Click Save at the bottom of the control panel.
Modifying Spacers (Margins and Paddings)#
Spacers allow editors to control the vertical rhythm of the page without writing custom CSS. The add-on provides four separate dropdowns on rows: Top Margin, Bottom Margin, Top Padding, and Bottom Padding.
The classes for these are managed in the respective tabs:
Spacer padding top
Spacer padding bottom
Spacer margin top
Spacer margin bottom
If you are using Tailwind CSS instead of Bootstrap, you would change these values:
Go to the Spacer padding top tab.
Edit the existing rows or add new ones.
Spacer Label: The human-readable label (e.g., "Large").
Spacer CSS class: The utility class (e.g.,
pt-12instead of Bootstrap'spt-5).
Click Save.
The changes will immediately be reflected in the edit form dropdowns for all Dynamic Page Row instances across the site.