Nis*_*sam 4 php magento magento-1.6
我想在我的magento-1.6网站上的标题块上加载我的'wishlist'.我使用的是magento1.6.2.0.现在我的愿望清单出现在左侧区块.我刚刚将wishlist.xml的引用从左边更改为header
<reference name="header">
<block type="wishlist/customer_sidebar" name="wishlist_sidebar" as="wishlist" template="wishlist/sidebar.phtml"/>
</reference>
Run Code Online (Sandbox Code Playgroud)
但它不会来我怎么能实现那个......?我要编辑哪个xml文件..?
所有布局XML文件都是一个 - 也就是说,它们作为典型渲染的一部分进行合并.
您需要编辑页面/ html/header.phtml文件并添加以下代码:
<?php echo $this->getChildHtml('wishlist') ?>
Run Code Online (Sandbox Code Playgroud)
在您执行任何此操作之前,您应该阅读官方Magento知识库中的文章,特别注意主题层次结构和开发人员文章.获得主题自定义的时间是在项目的开始.