故事
我搜索了一個解決方案,但沒有找到我能找到的解決方案,我是製作Magento模塊的新手,作爲一個開始,我試圖創建title屬性的一個非常簡單的改變。簡單的Magento模塊:更新佈局不起作用
問題
很簡單:它不起作用(標題屬性根本沒有改變)。我刷新了所有緩存,並確認模塊確實已在Config> Advanced> Advanced中加載。
代碼:
/app/etc/modules/Acme_NewCoolModule.xml:
<?xml version="1.0"?>
<config>
<modules>
<Acme_NewCoolModule>
<active>true</active>
<codePool>local</codePool>
</Acme_NewCoolModule>
</modules>
</config>
應用程序/代碼/本地/阿克米/ NewCoolModule的/ etc/config.xml文件:
<?xml version="1.0"?>
<config>
<modules>
<Acme_NewCoolModule>
<version>1.0.0.0</version>
</Acme_NewCoolModule>
</modules>
<frontend>
<layout>
<updates>
<Acme_NewCoolModule>
<file>acme_newcoolmodule.xml</file>
</Acme_NewCoolModule>
</updates>
</layout>
</frontend>
</config>
app/design/base/default/layout/acme_newcoolmodule.xml:
<?xml version="1.0"?>
<layout>
<default>
<reference name="head">
<action method="setTitle"><string>Hello World</string></action>
</reference>
</default>
</layout>
對不起 - 我只是忘了將它從原來的改成它,它實際上是寫在你寫在這裏的。現在在OP中改變了它。 – Dencker
@Dencker:編輯之後,你的Acme_NewCoolModule也是錯誤的。檢查關閉節點' Acme_EnhancedEcommerce>' –
感謝您的通知:) – Dencker