
You can enable Template path hint in two ways:
WAY 1:
Connet your Database and enter values into ‘core_config_data’ table
Run the following query on the Magento database:
INSERT INTO core_config_data (scope, scope_id, path, value)
VALUES ('default', 0, 'dev/debug/template_hints', 1),
('default', 0, 'dev/debug/template_hints_blocks', 1);
When you’ve finished development want to turn off template hints in the admin panel, open the core_config_data table and change the ‘value’ column of the two row you inserted to “0”.
Way 2 :
open app/code/core/Mage/Core/Block/Template.php and find the function named
function getShowTemplateHints()
change the code with the following code:
public function getShowTemplateHints()
{
if (is_null(self::$_showTemplateHints)) {
self::$_showTemplateHints = Mage::getStoreConfig(self::XML_PATH_DEBUG_TEMPLATE_HINTS)
&& Mage::helper('core')->isDevAllowed();
self::$_showTemplateHintsBlocks = Mage::getStoreConfig(self::XML_PATH_DEBUG_TEMPLATE_HINTS_BLOCKS)
&& Mage::helper('core')->isDevAllowed();
}
//return self::$_showTemplateHints;
return true;
}
Way 3:
Add the following code in local.xml(/app/etc/local.xml)
<!--Start Admin Path Hints -->
<websites>
<admin>
<dev>
<debug>
<template_hints>1</template_hints>
<template_hints_blocks>1</template_hints_blocks>
</debug>
</dev>
</admin>
</websites>
<!--End Admin Path Hints -->
The above code will enable path link in both admin and frontend
![]()
0 Comments