nortn / magento2-page-builder-classes-presets
Magento2 PageBuilder - Classes presets
Installs: 5
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 1
Forks: 0
Open Issues: 0
Type:magento2-module
This package is auto-updated.
Last update: 2025-06-24 22:13:34 UTC
README
This module enhances the PageBuilder functionality by adding a configurable list of class presets and replacing the default "Additional Classes" input field with a select dropdown.
Features
- Adds a new configuration section in:
Stores -> Configuration -> NortN -> PageBuilder
- Introduces a CSS Class Presets group with a dynamic rows field where users can:
- Define multiple sets of CSS classes.
- Assign labels and descriptions to each set.
- Replaces the default "Additional Classes" input field with a select dropdown populated with values from global configuration.
Configuration
To configure the module:
- Navigate to Stores -> Configuration -> NortN -> PageBuilder.
- Locate the CSS Class Presets group.
- Use the dynamic rows field to add or edit class sets with labels and descriptions.
Note: If a class preset that is currently in use is modified or removed from the configuration, it will continue to be applied until the next content edit. Upon saving, if no new preset is selected, the value will reset.
Installation
To install the module from Packagist, run the following commands:
composer require nortn/magento2-page-builder-classes-presets bin/magento module:enable NortN_PageBuilderClassPresets bin/magento setup:upgrade bin/magento cache:flush
Usage
- When editing a PageBuilder content type that supports additional classes, you will see a select dropdown instead of a text input.
- Choose a class preset from the dropdown to apply predefined styles.
Compatibility
- Magento 2.4.x
- Adobe Commerce (formerly Magento Commerce)
Support
For any issues or feature requests, please open an issue on GitHub.
GitHub Repository: m2ext-page-builder-classes-presets