使用local.xml将topSearch移动到nav容器

时间:2013-01-25 16:56:06

标签: xml magento layout

如何使用local.xml将topSearch块移动到“nav-container”div中?

我做了什么:

1)使用unsetChild方法从标题中删除:确定

2)添加了local.xml的“default”句柄

        <reference name="top.menu"> 
        <block type="core/template" name="top.search" as="topSearch" template="catalogsearch/form.mini.phtml"/> 
    </reference>

topSearch直接出现在“nav-container”div下。我试图在topmenu.phtml中加入

        <?php echo $this->getChildHtml('topSearch') ?>

但没有任何反应:(

1 个答案:

答案 0 :(得分:0)

旧帖但我遇到了同样的问题。我发布了我的解决方案:here

希望它对你有用..