English 中文(简体)
Customizing Magento Sidebar
原标题:

How can I edit or add blocks on the sidebar in magento

问题回答

If you have a custom layout, you could use that to overwrite the block/"sub-block" by using a reference

<reference name="right">

<!-- Your customisation here -->

</reference>

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

specifically you might like to look at this image:

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

Go to app/design/frontend/default/[yourtheme]/layout location and create page.xml by copying it from the base/default/layout folder.

Search for:

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

And change it to:

<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>




相关问题
Configure flymake to use specific directory for temp files?

I ve been looking through the documentation and tried customizing and a variety of things, but no matter what I do it seems like Flymake just always places its temporary files into whatever directory ...

Customizing output of BLAST?

I know this is a very specific question relating to BLAST and Bioinformatics but here goes: I am attempting to use standalone BLAST (I already have downloaded it and tested it running on the command ...

Extendable .Net Document management for under $30K

i am looking to answer one of those problems that sometimes get give to us devs by sales staff trying to get a sale in under budget. We have a client that requires the following: Document management ...

热门标签