有没有办法让我为模板使用自定义页脚,而不是使用 Magento 中的默认页脚



有没有办法让自定义模板指向特定的自定义页脚? 我在/enterprise/template/newtemplate/test.phtml 下创建了一个模板

模板工作正常,但它使用的是位于

/enterprise/template/page/html/foot.phtml

我想让我的模板 test.phtml 指向不同的页脚。

对于Magento 1.x: 将以下代码放入local.xml

应用程序/设计/前端/{您的主题}/默认/布局/本地.xml

<?xml version="1.0"?>
<layout version="0.1.0">
<default>
<reference name="footer">
<block type="core/template" name="mylogic" template="mylogic/mylogic.phtml"/>
</reference>
</default>
</layout>

把这个写在你的footer.html

<?php echo $this->getChildHtml('mylogic') ?>

最新更新