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?

share|improve this question
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 – Murtuza Zabuawala Dec 1 '16 at 7:46
up vote 0 down vote accepted

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>
share|improve this answer
    
Thanks, really simple solution, should have thought of that myself. – SheperdOfFire Dec 1 '16 at 9:50
    
Welcome - You can also up vote. – S H Patel Dec 1 '16 at 9:51

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.