简体   繁体   English

Magento中的左列phtml文件

[英]Left Column phtml file in Magento

I'm trying to change the categories in the left column but I don't find the file to modify. 我正在尝试更改左列中的类别,但找不到要修改的文件。 This is the name of the div: 这是div的名称:

<div class="col-left sidebar">
<div id="categories_list">

Can you help ? 你能帮我吗 ? Thanks. 谢谢。

EDIT: I Find the solution, I search in "page.xml" where i could find one named "left" and file is located "app/design/frontend/default/my_theme/template/catalog/navigation/left.phtml". 编辑:我找到了解决方案,我在“ page.xml”中搜索可以找到一个名为“ left”的文件,文件位于“ app / design / frontend / default / my_theme / template / catalog / navigation / left.phtml”。

Thanks for your help guys :) 谢谢您的帮助:)

locate the <div class="col-left sidebar"> in the following for Default path 在以下默认路径中找到<div class="col-left sidebar">

/app/design/frontend/base/default/template/page/2columns-left.phtml

for theme path 用于主题路径

/app/design/frontend/default/theme/template/page/2columns-left.phtml

and put your categories_list div here. 并将您的categories_list div放在此处。

Your question needs improvement. 您的问题需要改进。 It's kind of vague. 这有点含糊。
But I'll try in anyway. 但是我还是会尝试的。 The contents depend on your theme. 内容取决于您的主题。 In the default theme there is no div with that id. 在默认主题中,没有具有该ID的div。
You can turn on template path hints to see the exact template it comes from. 您可以打开模板路径提示以查看其确切来源。

Using template path hints you can easily find your template path files.
Login to admin pannel and under
- System -> Configuration
- Change the “Configuration Scope” to “Default Store View” (or whichever store view you want to see template paths on)
- Under Advanced in the left menu click Developer
- Click “Debug” to expand that section
- Change “Template Path Hints”  to "Yes"
- Click Save Configuration
Now to refresh the front-end and see all the locations of the template files so you can easily modify the correct ones. 

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM