0
같은 테마 내에서 다른 모듈에 속한 블록을 재정의하려고합니다.은 내 모듈이 재정의 된 모듈보다 먼저로드되기 때문에 블록 레이아웃을 재정의 할 수 없습니다.
다른 확장 레이아웃 :
<reference name="content">
<block type="opc/wrapper" name="es.checkout.container" template="opc/wrapper.phtml">
<!-- LOGIN FORM -->
<block type="opc/onepage_login" name="checkout.onepage.login" as="login" template="opc/onepage/login.phtml">
<block type="customer/account_forgotpassword" name="forgotPassword" template="opc/customer/form/forgotpassword.phtml"/>
</block>
<!-- BILLING FORM -->
<block type="checkout/onepage_billing" name="checkout.onepage.billing" as="billing" template="opc/onepage/billing.phtml"/>
<!-- SHIPPING FORM -->
<block type="checkout/onepage_shipping" name="checkout.onepage.shipping" as="shipping" template="opc/onepage/shipping.phtml"/>
내 레이아웃 : 블록이 재정의하지 않도록
<opc_index_index>
<reference name="head">
<action method="addItem"><type>skin_js</type><name>js/doniking/jne/iwd_opc.js</name></action>
</reference>
<reference name="es.checkout.container">
<action method="setTemplate">
<template>doniking/jne/iwd/opc/wrapper.phtml</template>
</action>
</reference>
<reference name="checkout.onepage.billing">
<action method="setTemplate">
<template>doniking/jne/iwd/opc/billing.phtml</template>
</action>
</reference>
내 레이아웃은 다른 모듈 레이아웃 전에 젠토에 의해로드됩니다. 오버라이드 된 블록 다음에로드하는 방법은 무엇입니까?
나는 나의 모듈이 다른 모듈을 필요로하지 않기 때문에
<Depends />
를 사용 싶지 않다.
예 재정의 된 모듈 다음에 알파벳순으로 이름을 바꾸었지만 작동합니다. –