Tuesday 25 June 2013

Magento - Enable template path hint in admin pages


 - We can do it by changing the database directly. If we have something like phpMyAdmin that is a good way to gain access. Enter this SQL.
INSERT INTO `core_config_data` (`scope`, `scope_id`, `path`, `value`)
       VALUES ('websites', '0', 'dev/debug/template_hints', '1');
 - When we are done with path hints just delete the matching record from core_config_data Or update the value field to 0 instead of deleting the whole record, it will probably be the last one since you've just added it.

( OR ELSE )

 - We can enable template and block path hints in every store (including the admin store) by setting them in the Magento configuration. To do this, simply edit your module's configuration file config.xml(which gets injected into Magento's global configuration).
To enable template and block path hints in the admin area add this to ourconfig.xml file
<config>

    ...

    <stores>
        <admin>
            <dev>
                <debug>
                    <template_hints>1</template_hints>
                    <template_hints_blocks>1</template_hints_blocks>
                </debug>
            </dev>
        </admin>
    </stores>

</config>
To disable path hints simply change to 0, or delete the node.

No comments:

Post a Comment