Thursday, September 22, 2011

How to Enable template path hints for Magento Admin Panel?

When developing a new Magento Admin theme, one of the tools that will make your life easier is the template path hints. One thing this feature is missing, is the ability to show the template path hints on the admin panel. Whether you’re working on a custom admin theme or module or you’re just curious about what’s under the hood, being able the enable the hints in the admin would be a cool feature. Here is the easy way to accomplish this:

Run the following query to enable the hints:
INSERT INTO core_config_data SET scope = 'default', scope_id = 0,
            path = 'dev/debug/template_hints', value = 1;
INSERT INTO core_config_data SET scope = 'default', scope_id = 0,
            path = 'dev/debug/template_hints_blocks', value = 1;
Clear the config cache, Thats it. You have template path hints in the admin. To disable run a sql query to set the value to 0.

No comments:

Post a Comment