Enable template path hints in Magento admin


Newer Magento versions including Community 1.9 and higher, add the following in a config.xml of an active module:

<config>
...
     <websites>
        <admin>
            <dev>
                <debug>
                    <template_hints>1</template_hints>
                    <template_hints_blocks>1</template_hints_blocks>
                </debug>
            </dev>
        </admin>
    </websites>
...
</config>

For older installs insert this record into the database and delete when finished:

INSERT INTO `core_config_data` (`scope`, `scope_id`, `path`, `value`) VALUES ('websites', '0', 'dev/debug/template_hints', '1');

Leave a comment

Your email address will not be published. Required fields are marked *