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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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