Question

I am creating a magento theme. I set 2columns-right layout for all page. Now I want to create a template and set 1columns layout for home page from local.xml. But admin home page cms selected layout still remains and my created and admin home page cms content both still show. So how can I avoid admin home page cms layout and content without disable and set 1columns layout for home page. Any suggestion and help are appreciated. Thank you.

Here is my code:

<?xml version="1.0" encoding="UTF-8"?>
<layout>
    <!-- Global Operations -->
    <default>
        <reference name="root">
            <action method="setTemplate">
                <template>page/2columns-right.phtml</template>
            </action>
            <reference name="content">
                <block type="core/template" name="some_random_name" template="cms/home.phtml"/>
                <action method="setTemplate"><template>page/1column.phtml</template></action>
            </reference>
        </reference>
    </default>
</layout>
Was it helpful?

Solution

Afaik is this not possible. Every change you make in the backend has higher priority than any config file.

This is true for:

  • layout changes
  • store configuration
Licensed under: CC-BY-SA with attribution
Not affiliated with magento.stackexchange
scroll top