找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 1234|回复: 0

[Magento] How to manage callouts (sidebar banners) in Magento

[复制链接]
发表于 2012-9-28 08:50:54 | 显示全部楼层 |阅读模式
The following tutorial will show you how to manage the sidebar images (called callouts) in Magento. It’s an easy task, but finding them requires a small bit of digging (as usual).

To make locating callouts easy we recommend you to enable the debug tools.

After enabling the Template Path Hints and Block Names you can see that the template files (phtml files) which include the html for the callouts are located at:

app/design/frontend/*/*/template/callouts/right_col.phtml

app/design/frontend/*/*/template/callouts/left_col.phtml

You can also see that the block is being added onto your Magento install via catalog.xml

app/design/frontend/*/*/layout/catalog.xml
Remove Callout

Open app/design/frontend/*/*/layout/catalog.xml, locate <reference name="right"> for the right column or <reference name="left"> for the left column. Replace
  1. <block  type="core/template" name="right.permanent.callout"  template="callouts/right_col.phtml"/>
复制代码
With
  1. <!--<block  type="core/template" name="right.permanent.callout"  template="callouts/right_col.phtml"/>-->
复制代码
Or remove the line

Move Callout from right to left

In the same catalog.xml file copy the
  1. <block  type="core/template" name="right.permanent.callout"  template="callouts/right_col.phtml"/>
复制代码
  1. <reference  name="right">…</reference>
复制代码
to
  1. <reference name="left">…</reference>
复制代码
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|Archiver|手机版|小黑屋|王牌互联

GMT+8, 2024-11-17 04:55 , Processed in 0.040322 second(s), 16 queries .

Powered by Discuz! X3.5

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表