さて、別の拡張子のレイアウト ファイルをオーバーライドしようとしています。Magento Enterprise 1.13 を使用しています
これは私の config.xml です:
<config>
<frontend>
<layout>
<updates>
<mymodule>
<file>mymodule.xml</file>
</mymodule>
</updates>
</layout>
</frontend>
</config>
次に、design/frontend/enterprise/mytheme/layout/mymodule.xml で:
<?xml version="1.0"?>
<layout version="0.1.0">
<affiliateplus_default>
<update handle="page_two_columns_left" />
<reference name="left">
<block type="affiliateplus/account_navigation" before="-" name="account_navigator" template="affiliateplus/navigation.phtml">
<action method="setNavigationTitle">
<title helper="affiliateplus/account/getNavigationLabel" />
</action>
<action method="addLink" translate="label" module="affiliateplus">
<name>balance</name>
<path>affiliateplus/inddsafdsex/paymentForm</path>
<label helper="affiliateplus/account/getBalanceLabel" />
<disabled helper="affiliateplus/account/accountNotLogin" />
<order>6</order>
</action>
<action method="addLink" translate="label" module="affiliateplus">
<name>home</name>
<path>affiliateplus</path>
<label>Affiliate Home</label>
<disabled>0</disabled>
<order>10</order>
</action>
<action method="addLink" translate="label" module="affiliateplus">
<name>login</name>
<path>affiliateplus/account/login</path>
<label>Login</label>
<disabled helper="affiliateplus/account/customerLoggedIn" />
<order>20</order>
</action>
<action method="addLink" translate="label" module="affiliateplus">
<name>register</name>
<path>affiliateplus/account/register</path>
<label>Signup</label>
<disabled helper="affiliateplus/account/isRegistered" />
<order>30</order>
</action>
<action method="addLink" translate="label" module="affiliateplus">
<name>banners</name>
<path>affiliateplus/banner/list</path>
<label><![CDATA[Banners & Links]]>
</label>
<disabled helper="affiliateplus/account/accountNotLogin" />
<order>40</order>
</action>
<action method="addLink" translate="label" module="affiliateplus">
<name>refers</name>
<path>affiliateplus/refer/index</path>
<label><![CDATA[Refer Friends]]>
</label>
<disabled helper="affiliateplus/account/accountNotLogin" />
<order>43</order>
</action>
<action method="addLink" translate="label" module="affiliateplus">
<name>materials</name>
<path>affiliateplus/index/materials</path>
<label>Materials</label>
<disabled helper="affiliateplus/config/disableMaterials" />
<order>100</order>
</action>
<action method="addLink" translate="label" module="affiliateplus">
<name>sales</name>
<path>affiliateplus/index/listTransaction</path>
<label>Commissions</label>
<disabled helper="affiliateplus/account/accountNotLogin" />
<order>110</order>
</action>
<action method="addLink" translate="label" module="affiliateplus">
<name>payments</name>
<path>affiliateplus/index/payments</path>
<label>Withdrawals</label>
<disabled helper="affiliateplus/account/accountNotLogin" />
<order>120</order>
</action>
<action method="addLink" translate="label" module="affiliateplus">
<name>referrers</name>
<path>affiliateplus/index/referrers</path>
<label>Traffics</label>
<disabled helper="affiliateplus/account/accountNotLogin" />
<order>180</order>
</action>
<action method="addLink" translate="label" module="affiliateplus">
<name>edit</name>
<path>affiliateplus/account/edit</path>
<label>Settings</label>
<disabled helper="affiliateplus/account/accountNotLogin" />
<order>190</order>
</action>
<action method="addLink" translate="label" module="affiliateplus">
<name>logout</name>
<path>affiliateplus/account/logout</path>
<label>Logout</label>
<disabled helper="affiliateplus/account/accountNotLogin" />
<order>200</order>
</action>
</block>
</reference>
</affiliateplus_default>
</layout>
ただし、ページを更新すると、2 つのナビゲーション ペインが表示されます。最初は、すでにあるものに追加しているだけだと思っていました。ただし、変更を加えると、両方に表示されます。私が考えることができるのは、それが私のレイアウトを引き込んでいるということだけです....次に、それらのレイアウトを引き込み、オーバーライドを見て、レイアウトを再度引き込みます。個人的には、これを試したのはこれが初めてなので、間違っている可能性は十分にありますが、これについては何の助けも見つかりません. ヘルプ/コメントをありがとう。