Add a New page template in CMS dropdown lists in Magento!!

Suppose we want to add “4column.html” layou. And this also show in CMS custom layout select dropdown box.

For this we have to go to \app\code\core\Mage\Page\etc and open config.xml file and add this

<page>
            <layouts>
                <empty module="page" translate="label">
                    <label>Empty</label>
                    <template>page/one-column.phtml</template>
                    <layout_handle>page_empty</layout_handle>
                </empty>
                <one_column module="page" translate="label">
                    <label>1 column</label>
                    <template>page/1column.phtml</template>
                    <layout_handle>page_one_column</layout_handle>
                </one_column>
                <two_columns_left module="page" translate="label">
                    <label>2 columns with left bar</label>
                    <template>page/2columns-left.phtml</template>
                    <layout_handle>page_two_columns_left</layout_handle>
                </two_columns_left>
                <two_columns_right module="page" translate="label">
                    <label>2 columns with right bar</label>
                    <template>page/2columns-right.phtml</template>
                    <layout_handle>page_two_columns_right</layout_handle>
                </two_columns_right>
                <three_columns module="page" translate="label">
                    <label>3 columns</label>
                    <template>page/3columns.phtml</template>
                    <layout_handle>page_three_columns</layout_handle>
                </three_columns>
				<!--Edit here start-->
				<four_columns module="page" translate="label">
                    <label>4 columns</label>
                    <template>page/4columns.phtml</template>
                    <layout_handle>page_four_columns</layout_handle>
                </four_columns>
				<!--Edit here end-->
            </layouts>
        </page>

Then you can see your custom layout.
But before that you must clean your cache.

Advertisements

Tagged: , , , ,

5 thoughts on “Add a New page template in CMS dropdown lists in Magento!!

  1. Roulette December 28, 2009 at 2:38 am

    Great idea, but will this work over the long run?

  2. pobediti rulet December 28, 2009 at 2:51 am

    Hey, ok, I get it, I guess – but does this really work?

  3. midpart December 28, 2009 at 1:16 pm

    I already test to website.

  4. pengar January 1, 2010 at 8:14 am

    Damn, that sound’s so easy if you think about it.

  5. Pharmk692 January 20, 2010 at 9:05 am

    Very nice site!

Comments are closed.

%d bloggers like this: