1

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>
asked Oct 21, 2014 at 20:51
2
  • why don't to make the home page as 1 column from admin? Commented Oct 22, 2014 at 4:15
  • because i want to sale this theme future. So If any buy my theme then he can easily see my home page Commented Oct 22, 2014 at 5:45

1 Answer 1

1

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
answered Oct 21, 2014 at 21:10

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

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

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.