title: Magento - plugin overwrite local.xml block
body: <p>I have a local.xml file that has the following:</p>
  
  <pre><code>&lt;default&gt;
     &lt;cms_index_index translate="label"&gt;
        &lt;reference name="masthead"&gt;
            &lt;block type="page/html" template="cms/masthead/homepage.phtml" as="banners" /&gt;
        &lt;/reference&gt;
     &lt;/cms_index_index translate="label"&gt;
  &lt;/default&gt;
  </code></pre>
  
  <p>I have a plugin that has it's own config.xml - I wish to override the above block with a template located in: /app/code/local/MageWorx/GeoIP/cms/homepage.phtml.</p>
  
  <p>The config.xml file is however different and looks like:</p>
  
  <pre><code>&lt;config&gt;
  &lt;modules&gt;
      &lt;MageWorx_GeoIP&gt;
          &lt;version&gt;1.0.7&lt;/version&gt;
      &lt;/MageWorx_GeoIP&gt;
  &lt;/modules&gt;
  
  &lt;frontend&gt;
      &lt;translate&gt;
          &lt;modules&gt;
              &lt;MageWorx_GeoIP&gt;
                  &lt;files&gt;
                      &lt;default&gt;MageWorx_GeoIP.csv&lt;/default&gt;
                  &lt;/files&gt;
              &lt;/MageWorx_GeoIP&gt;
          &lt;/modules&gt;
      &lt;/translate&gt;
      &lt;routers&gt;
          &lt;geoip&gt;
              &lt;use&gt;standard&lt;/use&gt;
              &lt;args&gt;
                  &lt;module&gt;MageWorx_GeoIP&lt;/module&gt;
                  &lt;frontName&gt;geoip&lt;/frontName&gt;
              &lt;/args&gt;
          &lt;/geoip&gt;
      &lt;/routers&gt;
      &lt;layout&gt;
          &lt;updates&gt;
              &lt;geoip&gt;
                  &lt;file&gt;geoip.xml&lt;/file&gt;
              &lt;/geoip&gt;
          &lt;/updates&gt;
      &lt;/layout&gt;
      &lt;events&gt;
          &lt;controller_action_predispatch&gt;
              &lt;observers&gt;
                  &lt;geoip&gt;
                      &lt;type&gt;singleton&lt;/type&gt;
                      &lt;class&gt;MageWorx_GeoIP_Model_Observer&lt;/class&gt;
                      &lt;method&gt;geoipAutoswitcher&lt;/method&gt;
                  &lt;/geoip&gt;
              &lt;/observers&gt;
          &lt;/controller_action_predispatch&gt;
          &lt;controller_action_predispatch_directory_currency_switch&gt;
              &lt;observers&gt;
                  &lt;geoip&gt;
                      &lt;type&gt;singleton&lt;/type&gt;
                      &lt;class&gt;MageWorx_GeoIP_Model_Observer&lt;/class&gt;
                      &lt;method&gt;setCurrency&lt;/method&gt;
                  &lt;/geoip&gt;
              &lt;/observers&gt;
          &lt;/controller_action_predispatch_directory_currency_switch&gt; 
      &lt;/events&gt;
  &lt;/frontend&gt;
  
  &lt;global&gt;
      &lt;models&gt;
          &lt;geoip&gt;
              &lt;class&gt;MageWorx_GeoIP_Model&lt;/class&gt;
              &lt;resourceModel&gt;geoip_mysql4&lt;/resourceModel&gt;
          &lt;/geoip&gt;
          &lt;geoip_mysql4&gt;
              &lt;class&gt;MageWorx_GeoIP_Model_Mysql4&lt;/class&gt;
          &lt;/geoip_mysql4&gt;
          &lt;core&gt;
              &lt;rewrite&gt;
                  &lt;store&gt;MageWorx_GeoIP_Model_Core_Store&lt;/store&gt;
              &lt;/rewrite&gt;
          &lt;/core&gt;
      &lt;/models&gt;
      &lt;resources&gt;
          &lt;geoip_setup&gt;
              &lt;setup&gt;
                  &lt;module&gt;MageWorx_GeoIP&lt;/module&gt;
                  &lt;class&gt;MageWorx_GeoIP_Model_Mysql4_Setup&lt;/class&gt;
              &lt;/setup&gt;
              &lt;connection&gt;
                  &lt;use&gt;core_setup&lt;/use&gt;
              &lt;/connection&gt;
          &lt;/geoip_setup&gt;
          &lt;geoip_write&gt;
              &lt;connection&gt;
                  &lt;use&gt;core_write&lt;/use&gt;
              &lt;/connection&gt;
          &lt;/geoip_write&gt;
          &lt;geoip_read&gt;
              &lt;connection&gt;
                  &lt;use&gt;core_read&lt;/use&gt;
              &lt;/connection&gt;
          &lt;/geoip_read&gt;
      &lt;/resources&gt;
      &lt;blocks&gt;
          &lt;geoip&gt;
              &lt;class&gt;MageWorx_GeoIP_Block&lt;/class&gt;
          &lt;/geoip&gt;
          &lt;adminhtml&gt;
              &lt;rewrite&gt;
                  &lt;sales_order_view_info&gt;MageWorx_Adminhtml_Block_Geoip_Adminhtml_Sales_Order_View_Info&lt;/sales_order_view_info&gt;
                  &lt;customer_online_grid&gt;MageWorx_Adminhtml_Block_Geoip_Adminhtml_Customer_Online_Grid&lt;/customer_online_grid&gt;
                  &lt;system_store_edit_form&gt;MageWorx_Adminhtml_Block_Geoip_Adminhtml_System_Store_Edit_Form&lt;/system_store_edit_form&gt;
              &lt;/rewrite&gt; 
          &lt;/adminhtml&gt;
          &lt;checkout&gt;
              &lt;rewrite&gt;
                  &lt;onepage_billing&gt;MageWorx_GeoIP_Block_Checkout_Onepage_Billing&lt;/onepage_billing&gt;
                  &lt;onepage_shipping&gt;MageWorx_GeoIP_Block_Checkout_Onepage_Shipping&lt;/onepage_shipping&gt;
              &lt;/rewrite&gt;
          &lt;/checkout&gt;
          &lt;customer&gt;
              &lt;rewrite&gt;
                  &lt;address_edit&gt;MageWorx_GeoIP_Block_Customer_Address_Edit&lt;/address_edit&gt;
              &lt;/rewrite&gt;
          &lt;/customer&gt;
      &lt;/blocks&gt;
      &lt;helpers&gt;
          &lt;geoip&gt;
              &lt;class&gt;MageWorx_GeoIP_Helper&lt;/class&gt;
          &lt;/geoip&gt;
      &lt;/helpers&gt;
  &lt;/global&gt;
  
  &lt;adminhtml&gt;
      &lt;acl&gt;
          &lt;resources&gt;
              &lt;all&gt;&lt;title&gt;Allow Everything&lt;/title&gt;&lt;/all&gt;
              &lt;admin&gt;
                  &lt;children&gt;
                      &lt;system&gt;
                          &lt;children&gt;
                              &lt;config&gt;
                                  &lt;children&gt;
                                      &lt;mageworx_customers translate="title" module="mageworx"&gt;
                                      &lt;title&gt;MageWorx &amp;gt; Customers&lt;/title&gt;
                                      &lt;sort_order&gt;1&lt;/sort_order&gt; 
                                          &lt;children&gt;
                                              &lt;geoip translate="title" module="geoip"&gt;
                                                  &lt;title&gt;GeoIP Location&lt;/title&gt;
                                              &lt;/geoip&gt;
                                          &lt;/children&gt;
                                      &lt;/mageworx_customers&gt;
                                  &lt;/children&gt;
                              &lt;/config&gt;
                          &lt;/children&gt;
                      &lt;/system&gt;
                  &lt;/children&gt;
              &lt;/admin&gt;
          &lt;/resources&gt;
      &lt;/acl&gt;
      &lt;layout&gt;
          &lt;updates&gt;
              &lt;geoip&gt;
                  &lt;file&gt;geoip.xml&lt;/file&gt;
              &lt;/geoip&gt;
          &lt;/updates&gt;
      &lt;/layout&gt;
  &lt;/adminhtml&gt;
  
  &lt;default&gt;
      &lt;mageworx_customers&gt;
          &lt;geoip&gt;
              &lt;enable_store_switcher&gt;1&lt;/enable_store_switcher&gt;
              &lt;enable_currency_switcher&gt;1&lt;/enable_currency_switcher&gt;
              &lt;force_store_view&gt;1&lt;/force_store_view&gt;
              &lt;store_switcher_scope&gt;1&lt;/store_switcher_scope&gt;
              &lt;disable_store_switcher_key&gt;off&lt;/disable_store_switcher_key&gt;
              &lt;store_switcher_exception_urls&gt;/paypal/*&lt;/store_switcher_exception_urls&gt;
              &lt;db_type&gt;1&lt;/db_type&gt;
              &lt;db_path&gt;lib/GeoIP/GeoIP.dat&lt;/db_path&gt;
              &lt;enable_billing_country&gt;1&lt;/enable_billing_country&gt;
              &lt;enable_shipping_country&gt;1&lt;/enable_shipping_country&gt;
              &lt;enable_address_country&gt;1&lt;/enable_address_country&gt;
          &lt;/geoip&gt;
      &lt;/mageworx_customers&gt;
  &lt;/default&gt;
  </code></pre>
  
  <p></p>
  
  <p>Does anyone know where and what I should add in that config.xml to override the local.xml block?</p>