【问题标题】:Customizing Magento Sidebar自定义 Magento 侧边栏
【发布时间】:2009-11-25 12:03:00
【问题描述】:

如何在 magento 的侧边栏上编辑或添加块

【问题讨论】:

    标签: magento customization


    【解决方案1】:

    如果您有自定义布局,则可以使用它通过引用覆盖块/“子块”

    参考>

    http://www.magentocommerce.com/design_guide/articles/intro-to-layouts

    具体来说,您可能想看看这张图片:

    http://www.magentocommerce.com/images/uploads/term_reference.gif

    【讨论】:

      【解决方案2】:

      转到app/design/frontend/default/[yourtheme]/layout 位置并通过从base/default/layout 文件夹中复制page.xml 来创建它。

      搜索:

      <block type="core/text_list" name="right" as="right" translate="label">
          <label>Right Column</label>
      </block>
      

      并将其更改为:

      <block type="core/text_list" name="right" as="right" translate="label">
          <label>Right Column</label>
          <block type="core/template" template="pth/to/your/layout.phtml"/>
      </block>
      

      【讨论】: