[英]Magento: add a modified header.phtml to a copy of empty.phtml file for a custom module
I have created a custom module for a landing page after default customer login, I'm using the blank template page : empty.phtml; 在默认客户登录后,我已经为登录页面创建了一个自定义模块,我使用的是空白模板页面:empty.phtml;。
I want now to add to "empty.phtml" an edited version of footer and header.phtml, without editing the original versions of this files. 我现在想将页脚和header.phtml的编辑版本添加到“ empty.phtml”,而无需编辑该文件的原始版本。
How can I do that ?? 我怎样才能做到这一点 ??
Thanks a lot. 非常感谢。
Try put it to landing page's section into your layout file: 尝试将其放在着陆页的版式文件中:
<?xml version="1.0" encoding="UTF-8"?>
<layout version="0.1.0">
<your_landing_page>
<reference name="header">
<action method="setTemplate"><template>your_module/header_file.phtml</template></action>
</reference>
...
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.