Magento – local.xml & theme updates

local.xmlthemetheme-fallback

I'm trying my best to understand more about the local.xml file. If I may, could some kind soul answer a couple of questions I have?

  1. As I understand it, Magento will only read one local.xml file when rendering the page? I think this is true, because I just created a blank local.xml file in my child theme and the site was completely broken as a result.
  2. I use the Ultimo theme and I can see in the file directory that it uses it's own local.xml file, located at: app/design/frontend/ultimo/default/layout. If I was to modify this local.xml file, will the changes get overwritten when I update the theme? Updates for Ultimo are common and presumably this file gets modified now and again by the developers?

Thanks for taking the time to read this. Magento is fascinating to use but also very complicated for us beginners.

Best Answer

My understanding is that yes, only one local.xml will be read. But that doesn't mean that your child theme can't make changes. My suggestion is to carefully read this great article by Alan Storm on theme inheritance. While it's not totally required that you install the module that is mentioned in the article, I've used it to great effect to have a child of a child of a child theme in a large Magento site.

Related Topic