Tuesday, January 19, 2010

Display 'template hints' in 'default config'

Problem: Display 'template hints' and 'bloc hints' in 'default config'
Posible solution
If you want this option displayed for 'default config' also, just edit the app\code\core\Mage\Core\etc\system.xml file.
Look for something like this
<template_hints translate="label">
<label<Template Path Hints</label>
<frontend_type>select</frontend_type>
<source_model>adminhtml/system_config_source_yesno</source_model>
<sort_order>20</sort_order>
<show_in_default>0</show_in_default>
<show_in_website>1</show_in_website>
<show_in_store>1</show_in_store>
</template_hints>
replace
<show_in_default>0</show_in_default>
with
<show_in_default>1</show_in_default>
and clear the cache
Do the same for this section

<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>0</show_in_default>
<show_in_website>1</show_in_website>
<show_in_store>1</show_in_store>
</template_hints_blocks>
Be careful. When you enable these 2 from 'default config' you will also see template hints and block hints in the admin section.

No comments:

Post a Comment