我想改變一些塊的順序和位置。從標題到右側的放置已經改變,但訂單塊不起作用。Magento重新安排塊不工作
這裏是我的代碼:
<reference name="header">
<action method="unsetChild"><name>top.menu</name></action>
<action method="unsetChild"><name>top.search</name></action>
<action method="unsetChild"><name>top.links</name></action>
</reference>
<reference name="right">
<remove name="right.poll" />
<action method="insert">
<blockName>top.menu</blockName>
</action>
<action method="insert">
<blockName>top.search</blockName>
</action>
<action method="insert">
<blockName>top.links</blockName>
<after>top.menu</after> <!-- Here I want top.links to come after top.menuwhich is not working -->
</action>
</reference>
你是什麼意思安置與秩序? – jjm
@jjm,Placement意味着將位置從'header'改爲'right',它正在工作。但是我想在'top.menu'之後想要'top.links'這個塊的順序不起作用 – mrN
Ivan給出了一個很好的答案,涵蓋了你要找的東西http://stackoverflow.com/questions/4410206/通過本地xml-file-in-magento改變塊的順序 – McNab