如何开启magento后台模版提示?

打开文档 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><!–修改此处为 1–>
<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><!–修改此处为 1–>
<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的位置。打开后台然后按以下顺序点击就可以找到了

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

转自:http://hi.baidu.com/570851835/blog/item/d3c481099fc6e7cc63d98676.html

人人看电影网 www.rrkyy.com

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值