【发布时间】:2015-01-28 18:47:08
【问题描述】:
如何在我的主页 magento 中更改块的顺序?我安装了 ultimo 主题并希望更改静态块的位置。
【问题讨论】:
如何在我的主页 magento 中更改块的顺序?我安装了 ultimo 主题并希望更改静态块的位置。
【问题讨论】:
您可以使用主页上的 XML 布局更新字段来重新排列顺序。您的主题也可能在其配置中包含选项。
要控制 XML 布局更新中块的顺序,请在代码中包含“之前”或“之后”定位属性。
要放置一个块 - 在特定块之前或之后 - 将连字符替换为块标识符
例子:
<block type="cms/block" before="-" name="left.permanent.callout">
<block type="cms/block" before="some-other-block" name="left.permanent.callout">
<block type="cms/block" after="-" name="left.permanent.callout">
<block type="cms/block" after="some-other-block" name="left.permanent.callout">
【讨论】: