magento -- 在magento中如何调用static block?
来源:互联网 发布:什么牌子的美工钢笔好 编辑:程序博客网 时间:2024/05/16 11:55
magento -- 在magento中如何调用static block?
想在站点页面的某个地方放点静态的内容,比如广告,或者是促销信息之类的,这样的东西完全没有必要自己新建一个 block。完全可以使用cms的static block。创建完后,记住static block的id在模板中可以这样调用:
<?php echo $this->getLayout()->createBlock('cms/block')->setBlockId('block_id')->toHtml() ?>
那如果要放在昨边什么办?
<reference name="left">
<block type="cms/block" name="left.permanent.callout">
<action method="setBlockId"><block_id>left_column_block</block_id></action>
</block>
</reference>
在你要显示的那个页面对应的模块对应的layout handle中做上面修改,就可以放到左边栏位上去。想放在右边应该不难了吧。
- 在magento中如何调用static block
- 在magento中如何调用static block?
- magento -- 在magento中如何调用static block?
- magento中如何调用static block(静态块)
- magento 静态块 static block 调用
- Magento调用静态块(static block) 实例
- magento static block
- magento中static block的使用
- 如何使用magento的静态块--static block
- Magento调用Block方法集合
- magento -- 如何在magento中实现产品的批量上传
- magento -- 在magento中如何回复客户的评论
- magento -- 在magento中如何回复客户的评论
- magento -- 如何在magento中进行产品的批量上传
- 如何在magento中显示末在当前模板或对象加载的block
- Magento中如何调用SQL语句
- Magento如何调用图片
- Magento在代码中调用静态块
- 玩魔兽之有言在后
- 终于有些时间写博客了,一直想写的!
- Email Bounce Code Explanations
- CVS使用手册
- jxl的部分方法总结
- magento -- 在magento中如何调用static block?
- Silverlight WCF 初尝小结
- 按页取得数据
- ASP.NET自定义控件组件开发 第二章 继承WebControl的自定义控件
- 关于ORACLE触发器的owner
- 刪除xml Element中的屬性
- Windows XP系统中如何屏蔽 Ctrl+Alt+Del、Alt+Tab以及Ctrl+Esc键序列
- 在需要的时候用javascript收缩文本高度
- 什么是IIS应用程序池以及应用程序池详解