1

Can I define more than one layout update file in my config.xml for the adminhtml?

I want something like this:

<adminhtml>
 <layout>
 <updates>
 <blog_admin>
 <file>flinders_blog.xml</file>
 </blog_admin>
 <another_module>
 <file>another_module.xml</file>
 </another_module>
 </updates>
 </layout>
</adminhtml>

But this is not working. How can I achieve this?

asked Dec 1, 2016 at 7:43
1
  • 1
    Why you want 2 layout file where you can do anything from just one layout, and another thing for one extension you can create 1 layout file only Commented Dec 1, 2016 at 7:46

1 Answer 1

1

Try my below suggestion for it.

<adminhtml>
 <layout>
 <updates>
 <blog_admin>
 <file>flinders_blog.xml</file>
 </blog_admin>
 <namespace_modulename>
 <file>another_module.xml</file>
 </namespace_modulename>
 </updates>
 </layout>
</adminhtml>
Qaisar Satti
32.6k18 gold badges88 silver badges138 bronze badges
answered Dec 1, 2016 at 7:48
1
  • Thanks, really simple solution, should have thought of that myself. Commented Dec 1, 2016 at 9:50

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.