magento开启模板路径提示

magento模板开发很方便,多得益于这个模板路径提示,今天我给大家图文讲解下如何开启magento模板路径的提示。这对于做magento模板进行文件的定位是很有帮助的。

 第一步,首先进入后台的system—》configuration,所有的设置都是在这个里面设置的。

  第二步,也是很多人都不知道的一步,将左上方的这个“Current Configuration Scope”选到main website

hellokeykey.com magento模板路径提示

第三步,在这页面左栏下面的,进入developer里面进行设置

hellokeykey.com magento developer

 

第四步,在新打开的页面里有如下内容,将Debug中的Template Path Hints设置为yes,然后点击保存,如下图。

大家可以试下这个选项卡的第二个Add Block Name to Hints

hellokeykey.com magento template hints

好了,设置完成了,去magento的前台刷新下,就会出现如下的效果

hellokeykey.com 模板路径显示效果

如图,菜单的文件路径是frontend\default\default\template\catalog/navigation/top.phtml

           bread的文件路径是frontend\default\default\template\page/html/breadcrumbs.phtml

posted @ 2011-06-28 16:27  luoine  阅读(1389)  评论(0编辑  收藏  举报