0

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

我做了什么:

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

2) 在 local.xml 的“默认”句柄中添加

        <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') ?>

但什么也没发生:(

4

1 回答 1

0

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

希望这对你有用..

于 2013-07-05T16:38:14.070 回答