aoepeople / aoe_templatehints Goto Github PK
View Code? Open in Web Editor NEWAdvanced Template Hints for Magento
Home Page: http://www.fabrizio-branca.de/magento-advanced-template-hints-20.html
License: GNU General Public License v3.0
Advanced Template Hints for Magento
Home Page: http://www.fabrizio-branca.de/magento-advanced-template-hints-20.html
License: GNU General Public License v3.0
How does the module work?
It installs on Magento 2.3.6 but doesn't seem to do anything when I add the ?ath=1 url param
Thanks
Replace the following line:
https://github.com/AOEpeople/Aoe_TemplateHints/blob/master/app/code/community/Aoe/TemplateHints/Model/Observer.php#L95
if ($this->init && strpos(get_class($block), "Mage_Persistent") === false) {
if ($this->init && !Mage::getStoreConfigFlag('advanced/modules_disable_output/' . $block->getModuleName()) && $block->getNameInLayout()) {
I found that in the tool tip there is a class=header used - we have a style .header in the shop, so the shop header is placed in the tool tip.
I think we should prefix the CSS classes of the tooltips to avoid that - it does not really make sense to adapt the shop CSS for the template hints, as they are usually added "on top" or temporarily only.
Since Magento 1.9 you can not only add a subtheme but also a child theme. See: http://alanstorm.com/magento_parent_child_themes
Do you have a way to visualize that?
There is a feature in Chrome which allows you to map "compiled" code, i.e. Javascript and CSS (for example from SASS) to the original dev files.
I feel like we could also use this for the HTML templates.
What do you think?
Notice: Array to string conversion in /app/code/community/Aoe/TemplateHints/Model/Renderer/Comment.php on line 62
As mentioned in #25 I would like to suggest to add line-breaks after each [END] block and before a new [START] to make it easier to read the comments.
Most developers have the source code view on most of the time anyways so I think another way of template hinting would be to just display HTML comments
can such an option be added?
I was testing looking up some admin pages, but noticed that the AJAX loaded content doesn't work.
Looks like there's a situation where the javascript snippet is included before prototype is included.
I did not try it yet, but as I dont saw a note about it:
I would like to have also the cache key/tag information in the block info.
When run in strict mode I get the following error (due to strict the script fails):
Notice: Undefined variable: parentMethods in /home/thomas/NetBeansProjects/magento/Aoe_TemplateHints/app/code/community/Aoe/TemplateHints/Helper/BlockInfo.php on line 124
Hey @fbrnc - would you update the link to point to the updated blog post (http://www.fabrizio-branca.de/magento-advanced-template-hints-20.html)?
Thank for this great tool it helps already quite a lot.
Maybe for a later version you might wanna consider to include support for the Mirasvit FPC extension as well.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.