0

Adding an adminhtml layout update breaks the re-index page here are my xmls.

The third file is an alternative for the layout update with nothing in, which still breaks the index page.

config.xml

<config>
 <adminhtml>
 <layout>
 <updates>
 <index>
 <file>module/file.xml</file>
 </index>
 </updates>
 </layout>
 </adminhtml>
</config>

module/file.xml

<layout>
 <default>
 <reference name="notifications">
 <block type="module/adminhtml_notifications" name="module_notifications" template="company/module/notifications.phtml"/>
 </reference>
 </default>
</layout>

Still breaks with this: module/file.xml

<layout>
</layout>
asked Mar 20, 2015 at 10:07

1 Answer 1

2

Declaring it like this:

 <layout>
 <updates>
 <index>
 <file>module/file.xml</file>
 </index>
 </updates>
 </layout>

tells magento not to use the default layout file for the index module but use your's instead.
So the original layout file is not loaded anymore.

Try declaring it like this:

 <layout>
 <updates>
 <module_index> <!-- this tag must be unique -->
 <file>module/file.xml</file>
 </module_index>
 </updates>
 </layout>
answered Mar 20, 2015 at 10:13
0

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.