✔️ Adds an additional HTML data-
attribute to CMS blocks for ease of identification
✔️ Additional markup is added automatically, no manual intervention from admins required
✔️ Configurable data-
attribute name to avoid conflicts with other customisations
Run the following command to install this module:
composer require element119/module-cms-identifier-markup
php bin/magento setup:upgrade
Run the following command to update this module:
composer update element119/module-cms-identifier-markup
php bin/magento setup:upgrade
Run the following command to uninstall this module:
composer remove element119/module-cms-identifier-markup
php bin/magento setup:upgrade
Module configuration can be found under Stores -> Settings -> Configuration -> General -> Content Management -> Advanced Content Tools
.
Add CMS Block Identifier to Markup
toggles this module's functionality on and off. When this option is set to Yes
,
the custom HTML data-
attribute that contains the CMS block's identifier will be added to the markup.
CMS Block Identifier HTML data- Attribute Name
sets the name of the custom HTML data-
attribute.