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
user46761
-
1Why 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 onlyMurtuza Zabuawala– Murtuza Zabuawala ♦2016年12月01日 07:46:41 +00:00Commented Dec 1, 2016 at 7:46
1 Answer 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
Suresh Chikani
16.1k11 gold badges65 silver badges102 bronze badges
-
Thanks, really simple solution, should have thought of that myself.user46761– user467612016年12月01日 09:50:36 +00:00Commented Dec 1, 2016 at 9:50
default