`
haohappy2
  • 浏览: 315329 次
  • 性别: Icon_minigender_1
  • 来自: 上海
社区版块
存档分类
最新评论

magento template hints configuration

阅读更多
打开文档 app/code/core/Mage/Core/etc/system.xml
找到如下代码段
<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>1</show_in_default>
	<show_in_website>1</show_in_website>
	<show_in_store>1</show_in_store>
	</template_hints>
	<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>1</show_in_default>
	<show_in_website>1</show_in_website>
	<show_in_store>1</show_in_store>
</template_hints_blocks>
 如果这里的  <show_in_default>1</show_in_default> 的值为0,则只要把0改成1就可以在后台看到 Template Path Hints 这个项了。

顺便说一下Template Path Hints的位置。打开后台然后按以下顺序点击就可以找到了

System–>Configuration–>选择店铺(例如:Main Website)–>选择左侧菜单最后一项(Developer) –>展开debug,将Template Path Hints设置为yes,OK。
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics