首页 > 未分类 > Magento block相关参数 block

Magento block相关参数 block

<reference name=”left”>
<block type=”core/template” before=”-” name=”catalog.compare.sidebar” template =”catalog/product/compare/sidebar.phtml” />
</reference >
简单解释下相关的参数:
before=”-”  作为第一个block,当有多个block指定该参数值时,后出现的优先;
after=”-”   作为最后一个block;
before=”block_name” 显示在block_name前面;
after=”block_name”显示在block_name后面。

<reference name=”left”><block type=”core/template” before=”-” name=”catalog.compare.sidebar” template =”catalog/product/compare/sidebar.phtml” /></reference >简单解释下相关的参数:
before=”-”  作为第一个block,当有多个block指定该参数值时,后出现的优先;after=”-”   作为最后一个block;before=”block_name” 显示在block_name前面;after=”block_name”显示在block_name后面。

Advertisements
分类:未分类
  1. 还没有评论。
  1. No trackbacks yet.

发表评论

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / 更改 )

Twitter picture

You are commenting using your Twitter account. Log Out / 更改 )

Facebook photo

You are commenting using your Facebook account. Log Out / 更改 )

Google+ photo

You are commenting using your Google+ account. Log Out / 更改 )

Connecting to %s

%d 博主赞过: