如何使用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') ?>
但没有任何反应:(