cancel
Showing results for 
Search instead for 
Did you mean: 

Trouble changing template with local.xml

   Did you know you can see the translated content as per your choice?

Translation is in progress. Please check again after few minutes.

Trouble changing template with local.xml

Hi

I try to change the template using an local.xml file. But the changes are not picked up (template path hints is on).

 

This is the code:

 

 

<?xml version="1.0"?>
<layout version="0.1.0">
    <default>
      <!-- removed blocks -->
      <remove name="right.permanent.callout" />
      <remove name="left.permanent.callout" />
    </default>

    <!-- Test 1 page template overrides -->
    <catalog_category_default>
      <reference name="root">
        <action method="setTemplate"><template>page/2columns-twins.phtml</template></action>
      </reference>
    </catalog_category_default>

    <!-- Test 2 page template overrides -->
    <page_two_columns_left translate="label">
        <label>All Two-Column Layout Pages (Twins Theme)</label>
        <reference name="root">
            <action method="setTemplate"><template>page/2columns-twins.phtml</template></action>
            <action method="setIsHandle"><applied>1</applied></action>
        </reference>
    </page_two_columns_left>
</layout>

 

Test 1 have no effect at all.

Test 2 works if I set the Default Category (in admin) to: Page layout - No layout updates.

 

So, two questions: why does not test 1 works and why do I have to set Default Category to No layout updates for Test 2 to work? I must be missing something simple and basic.

 

The custom theme is just a copy of the default/blank theme package.

 

Regards,

Magnus