【发布时间】:2014-01-24 07:14:18
【问题描述】:
我正在使用 MA2 Juno 主题并尝试将默认结帐块移动到另一个地方。
这样
之前:http://i42.tinypic.com/2ptw8ps.png 之后:http://i42.tinypic.com/oausdw.png
为此我发现我必须移动它
<?php echo $this->getChildHtml('topBlock1') ?>
从 header.phtml 到 topMenu.phtml 的代码块
但是在我改变之后,它没有工作。我想我需要以某种方式告诉magento topBlock1.phtml 是topMenu.phtml 的ChildHtml。但我不知道怎么做。
经过很长时间的 Google 搜索后,我发现我必须在 local.xml 文件中找到一些东西。
我做了类似的事情,但没有奏效。你们能帮帮我吗?
<reference name="topMenu">
<block name="top.block1" template="page/html/topBlock1.phtml" type="page/html_topblock1" as="topBlock1">
<label>Top1 blocks</label>
</block>
</reference>
PS:CSS 文件更改并不重要,我知道如何编辑和覆盖。
【问题讨论】:
标签: xml magento templates layout themes