Custom Module will help to make the New layout if we don't want to use the Magento default layout
We can add a new page layout in Magento, create a custom layout or create a new theme layout then here are the steps need to follow
create a module. Create file: app/etc/modules/Mage_Page.xml
Then copy this whole folder: app/code/core/Mage/Page/etc/config.xml to app/code/local/Mage/etc/config.xml
Now all you have to do is make a template for this page. Navigate to your theme directory: app/design/frontend/YOUR_THEME/YOUR_THEME/template/page/ and create a new template called home.phtml.
same as u can copy 2column-left.phtml or any
his will enable a custom layout option for CMS pages once you’re finished
We can add a new page layout in Magento, create a custom layout or create a new theme layout then here are the steps need to follow
create a module. Create file: app/etc/modules/Mage_Page.xml
<?xml version="1.0"?> <config> <modules> <Mage_Page> <active>true</active> <codePool>local</codePool> </Mage_Page> </modules> </config>
Then copy this whole folder: app/code/core/Mage/Page/etc/config.xml to app/code/local/Mage/etc/config.xml
<layouts> <home module="page" translate="label"> <label>Home</label> <template>page/home.phtml</template> <layout_handle>page_home</layout_handle> </home> <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> </layouts>
Now all you have to do is make a template for this page. Navigate to your theme directory: app/design/frontend/YOUR_THEME/YOUR_THEME/template/page/ and create a new template called home.phtml.
same as u can copy 2column-left.phtml or any
his will enable a custom layout option for CMS pages once you’re finished
No comments:
Post a Comment
Thankyou for your Comments