Type
magento2-module
H&O Magento 2 Advanced Template Hints module
magento2-module
BSD-2-Clause
None
None
None
None
None
Ho_Templatehints extends the default Magento template hints.
?ath=1
.composer require ho-nl/magento2-templatehints
php bin/magento module:enable Ho_Templatehints
php bin/magento setup:upgrade
Add the following to your composer.json file in Magento's root (repositories might already exists)
"repositories": [
{
"type": "vcs",
"url": "[email protected]:ho-nl/magento2-Ho_Templatehints.git"
}
],
composer require ho-nl/magento2-templatehints "dev-master"
php bin/magento module:enable Ho_Templatehints
php bin/magento setup:upgrade
?ath=1
to your URL to activate.You can't show hints for a hidden element, for that purpose there is hint($0)
:
//Select an element in the Elements panel in your devtools, it is now available with $0
hint($0)
The module adds an additional html-attribute to the outer most element of a layout element.
Of course heavily inspired by Aoe_TemplateHints and a bit of love from H&O.