Magento Template Path Hints in Admin - Updated
Apr 21, 2011 · 1 minute readCategory: magento
A while ago we posted a technique for displaying template path hints in admin which involved running a couple of DB queries. That worked, but a nicer method is to create a custom module with some special XML config to get it configurable as standard.
<?xml version="1.0"?>
<config>
<sections>
<dev translate="label" module="core">
<groups>
<debug translate="label">
<fields>
<template_hints translate="label">
<frontend_type>select</frontend_type>
<source_model>adminhtml/system_config_source_yesno</source_model>
<sort_order>20</sort_order>
<show_in_default>1</show_in_default>
<show_in_website>1</show_in_website>
<show_in_store>1</show_in_store>
</template_hints>
<template_hints_blocks translate="label">
<label>Add Block Names to Hints</label>
<frontend_type>select</frontend_type>
<source_model>adminhtml/system_config_source_yesno</source_model>
<sort_order>21</sort_order>
<show_in_default>1</show_in_default>
<show_in_website>1</show_in_website>
<show_in_store>1</show_in_store>
</template_hints_blocks>
</fields>
</debug>
</groups>
</dev>
</sections>
</config>
Original credits and full instructions here: http://www.deanoj.co.uk/web-development/magento/magento-template-path-hints-in-adminhtml/
Cheers Deano :)