magento -----Structural Blocks and Content Blocks

来源:互联网 发布:淘宝商品即将被处罚 编辑:程序博客网 时间:2024/05/19 13:05

1.大家都知道magento的block分为Structural Blocks and Content Blocks这2个,在实际的xml文档中该怎样区分这两个BLOCK呢?

 

Structural Blocks在 layout/page.xml中定义 ,如果要加入自己的 Structural Blocks也先在里面添加。或者要改变自定义的布局block,加入新的xxx.phtml.

2.Content Blocks运行在structural blocks里面, 是否能单独运行content blocks 还有待研究 (适合AJAX场合)