【发布时间】:2012-08-20 00:54:28
【问题描述】:
我正在使用的购物车下拉插件具有以下 XML,我无法将其移动到顶部链接。
<?xml version="1.0"?>
<layout version="0.1.0">
<default>
<reference name="head">
<action method="addCss" ifconfig="cartdrop/general/enabled"><stylesheet>css/cartdrop.css</stylesheet></action>
<action method="addJs" ifconfig="cartdrop/general/enabled"><script>lib/jquery-1.4.2.min.js</script></action>
<action method="addJs" ifconfig="cartdrop/general/enabled"><script>lib/cartdrop.js</script></action>
</reference>
<reference name="top.container">
<!--<action method="setTemplate" ifconfig="cartdrop/general/enabled"><template>cartdrop/template/header.phtml</template></action>-->
<block type="core/template" name="cartheader_sidebar" template="cartdrop/cartheader.phtml">
<block type="checkout/cart_sidebar" name="cart_sidebar" template="checkout/cart/sidebar.phtml" before="-">
<action method="addItemRender"><type>simple</type><block>checkout/cart_item_renderer</block><template>checkout/cart/sidebar/default.phtml</template></action>
<action method="addItemRender"><type>grouped</type><block>checkout/cart_item_renderer_grouped</block><template>checkout/cart/sidebar/default.phtml</template></action>
<action method="addItemRender"><type>configurable</type><block>checkout/cart_item_renderer_configurable</block><template>checkout/cart/sidebar/default.phtml</template></action>
<block type="core/text_list" name="cart_sidebar.extra_actions" as="extra_actions"/>
</block>
</block>
</reference>
</default>
</layout>
我已尝试将参考名称更改为 reference name="topLinks" 和 reference name="top.Links"
我也尝试复制该块并将其粘贴到 <reference name="top.links"> 下的 local.xml 中,然后将其放入 page.xml 中,但无济于事。
【问题讨论】: