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?

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 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>
1
  • Thanks, really simple solution, should have thought of that myself.
    – user46761
    Dec 1, 2016 at 9:50

Your Answer

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