【问题标题】:Change the order of locks at magento home page在magento主页更改锁的顺序
【发布时间】:2015-01-28 18:47:08
【问题描述】:

如何在我的主页 magento 中更改块的顺序?我安装了 ultimo 主题并希望更改静态块的位置。

【问题讨论】:

    标签: magento block webpage


    【解决方案1】:

    您可以使用主页上的 XML 布局更新字段来重新排列顺序。您的主题也可能在其配置中包含选项。

    要控制 XML 布局更新中块的顺序,请在代码中包含“之前”或“之后”定位属性。

    要放置一个块 - 在特定块之前或之后 - 将连字符替换为块标识符

    • before="-" 将块放置在侧边栏的顶部,之前 其他块。
    • after="-" 将块放置在底部 侧边栏,在其他块之后。

    例子:

     <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">
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-01-12
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多