簡體   English   中英

Magento:將修改后的header.phtml添加到自定義模塊的empty.phtml文件的副本中

[英]Magento: add a modified header.phtml to a copy of empty.phtml file for a custom module

在默認客戶登錄后,我已經為登錄頁面創建了一個自定義模塊,我使用的是空白模板頁面:empty.phtml;。

我現在想將頁腳和header.phtml的編輯版本添加到“ empty.phtml”,而無需編輯該文件的原始版本。

我怎樣才能做到這一點 ??

非常感謝。

嘗試將其放在着陸頁的版式文件中:

<?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.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM