Php 将其他模板添加到右侧栏magento中
我刚刚尝试添加额外的模板文件,以便在右侧栏中包含一块内容,但失败了 下面是我的努力 添加到local.xml文件中Php 将其他模板添加到右侧栏magento中,php,magento,Php,Magento,我刚刚尝试添加额外的模板文件,以便在右侧栏中包含一块内容,但失败了 下面是我的努力 添加到local.xml文件中 <reference name="right"> <block type="cms/template" name="right.side.template"> <action method="setTemplate"> <template>callouts/right_template.phtml<
<reference name="right">
<block type="cms/template" name="right.side.template">
<action method="setTemplate">
<template>callouts/right_template.phtml</template>
</action>
</block>
</reference>
详图索引/right_template.phtml
我也试过这个
<block type="cms/template" template="callouts/right_template.phtml"/>
并创建了一个模板文件callouts/right_template.phtml
但它并没有加载右侧栏中的模板文件内容
我该怎么办?我已清除magento缓存。我自己找到的,因为我使用了错误的类型
type=“cms/template”
。这应该是type=“core/template”
<block type="core/template" template="callouts/right_template.phtml"/>