I've been reading a few tutorials, and also a book where they explain how to override, create and manipulate themes, so far so good, however all of them just address how to create layouts for custom modules with a different name, here is my situation:

I created a module name "Customer" under a package named "MyCompany" so the path for the code would be :


I found a few collision issues that I was able to address with the help of the config.xml file for the module, however I've been unable to determine where should I place my layout and folder for the given theme as


Is already used by the module that comes with magento, I have not intention of manipulate the core files, I was wondering if there is away to have a different name for the layouts, templates etc or if the only work around would be a name change for my module.

2 Answers 2


In your module config.xml, you can define the layout file that must be used.

<!-- we are making changes to the frontend -->

        <!-- we are making changes to the layout -->

            <!-- we are adding a new update file -->

                    this child node name must be
                    unique throughout Magento

                    <!-- the name of the layout file we are adding -->





ref: http://coding.smashingmagazine.com/2012/11/30/introducing-magento-layout/


If you don't want to override magento's own customer.xml I recommend to name layout xml files: namespace_module.xml, so you will never have a problem.

  • After reading @ProxiBlue answer I was tempted to delete this one, but he forgot this little piece of informations and I think it is worth to raise the answer per question ratio ;) ... and it gives rep ^^ Commented Nov 23, 2013 at 8:10

Your Answer

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

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