Key changes:
-
New Feature:
- Added a new plugin
CmsBlockWrapper
to wrap Magento CMS blocks with template hints.
- Added a new plugin
-
Template Update:
- The template constant in
WrapperInterface.php
now includes an HTMLid
attribute for hints.
- The template constant in
-
Plugin Registration:
- Updated
etc/frontend/di.xml
to register the newCmsBlockWrapper
plugin forMagento\Cms\Block\Block
. - Changed plugin names and sort orders for better clarity and execution order.
- Updated
-
Enhancements to Template Rendering:
AbstractWrapper.php
now injects the block identifier as an HTML id.
-
Frontend Improvements:
- The
info.phtml
template displays more detailed layout information, including:- Layout cache ID
- Lists of handles, containers, blocks, and design abstractions
- Navigation link to page info
- Enhanced display and organization of block/class data
- The
-
Styling Updates:
- The LESS styles (
_module.less
) have been significantly expanded:- New color definitions for CMS blocks and pages.
- Improved styling for block hints, containers, and navigation elements.
- More user-friendly and visually distinct hint boxes and block info popups.
- The LESS styles (
Summary:
- The master branch introduces CMS block hinting, richer template and layout information for developers, and improved UI/UX for hints and layout info overlays.
Full Changelog: 1.1.7...master