我爱占星网 我爱占星网
首页
编程
java
php
前端
首页 编程 java php 前端

Magento为cms小部件添加参考块

I'm trying to add sliders inside my product view page. There are already a couple of presets within the CMS Widgets but none of them are at the location I want.

First I went into page.xml and added:

        <block type="core/text_list" name="testproduct" as="test_product" translate="label">
            <label>TEST PRODUCT</label>
        </block>

This added an additional block reference in the cms widget page.

Then in my view.phtml I added:

echo $this->getChildHtml('test_product'); 

But when I try to create a widget nothing shows up on the page.

近期文章

  • 合并到对象后,usort将无法工作
  • 为下拉菜单排序多个查询数组
  • 如何使用条件PHP在单击上运行SQL查询?
  • 循环数组和if键值存在时为结构化数组添加1
  • php和js:HTTP或HTTPS
  • 无法访问Laravel管理面板
  • 从AJAX请求返回while循环
  • zen-cart网站网址问题
  • 为foreach()提供的无效参数!
  • Laravel Auth ::后卫(后卫) - > check()没有按预期工作
  • 如何在Laravel 5.3中为用户的两步注册创建自定义注册页面?
  • 如何在提交当前页面中的提交按钮后创建将在上一页中禁用的提交按钮?
  • PHP Xpath不返回“实时”节点列表
  • 将complexObjectArray转换为可用数组
  • 在div中加载视图的问题 - codeigniter
  • 计算带有图形api的标签的评论
  • 我的代码显示没有errmsg,但没有将任何数据插入数据库
  • 在Amazon S3中上传图像
  • 在Laravel 5.3上下载文件
  • 错误的日期保存

Copyright ©2022 我爱占星 All Rights Reserved.

浙ICP备2022030071号-1

部分图文来自网络,如有侵犯您的版权,请告诉我们删除

友情链接:代码精华