0

次のレイアウト更新ハンドルが機能しない理由は何ですか? パンくずリストをcustomer_address_indexからcustomer_address_newおよびcustomer_address_newにコピーしようとしていますか?

<customer_address_index>
<reference name="breadcrumbs">
        <action method="addCrumb">
            <crumbName>home</crumbName>
            <crumbInfo><label>Home</label><title>Home</title><link>/</link></crumbInfo>
        </action>

        <action method="addCrumb">
            <crumbName>My Account</crumbName>
            <crumbInfo><label>My Account</label><title>My Account</title><link>/customer/account</link></crumbInfo>
        </action>

        <action method="addCrumb">
            <crumbName>Address Book</crumbName>
            <crumbInfo><label>Address Book</label><title>Address Book</title><link></link></crumbInfo>
        </action>


</reference>

</customer_address_index>


<customer_address_new>
     <reference name="breadcrumbs"> <!-- Not working -->
        <update handle="customer_address_index" />
     </reference>
</customer_address_new>

<customer_address_edit>
    <update handle="customer_address_index" /> <!-- Not working also -->
</customer_address_edit>

前もって感謝します

4

1 に答える 1

2

機能しない理由がわかりました。customer_address_newとcustomer_address_newが存在しません。customer_address_formを使用する必要があります

ここにxmlコード

<customer_address_index>
<reference name="breadcrumbs">
        <action method="addCrumb">
            <crumbName>home</crumbName>
            <crumbInfo><label>Home</label><title>Home</title><link>/</link></crumbInfo>
        </action>

        <action method="addCrumb">
            <crumbName>My Account</crumbName>
            <crumbInfo><label>My Account</label><title>My Account</title><link>/customer/account</link></crumbInfo>
        </action>

        <action method="addCrumb">
            <crumbName>Address Book</crumbName>
            <crumbInfo><label>Address Book</label><title>Address Book</title><link></link></crumbInfo>
        </action>


</reference>

</customer_address_index>

<!--
Not working properly
<customer_address_form>
     <reference name="breadcrumbs"> 
        <update handle="customer_address_index" />
     </reference>
</customer_address_form>

Not working also
<customer_address_form>
    <update handle="customer_address_index" /> 
</customer_address_form>
-->

<customer_address_form>
    <reference name="breadcrumbs">
        <action method="addCrumb">
            <crumbName>home</crumbName>
            <crumbInfo><label>Home</label><title>Home</title><link>/</link></crumbInfo>
        </action>

        <action method="addCrumb">
            <crumbName>My Account</crumbName>
            <crumbInfo><label>My Account</label><title>My Account</title><link>/customer/account</link></crumbInfo>
        </action>

        <action method="addCrumb">
            <crumbName>Address Book</crumbName>
            <crumbInfo><label>Address Book</label><title>Address Book</title><link></link></crumbInfo>
        </action>


</reference>
</customer_address_form>
于 2014-04-23T04:46:55.857 に答える