Creating a New CMS Page Layout In Magento

Some times if we are dealing with the custom Magento theme implementation then we need to create the new CMS Pages layout for our custom pages, it is very simple to create the New CMS Page Layout for this you have to create a simple extension for this. In this blog post I am describing how to create an Extension for the Custom CMS Page Layout.

Step 1. Create a Module creating this file: app/etc/modules/EWA_CMSCustomPage.xml

<?xml version="1.0"?>

Step 2. Now create the extension files in the app/code/community/Namespace/ExtensionName/etc/config.xml or here I have created a module app/code/community/EWA/CMSCustomPage/etc/config.xml and put the below code in it.

<?xml version="1.0"?>
<label>Custom Page Layout</label>

Step 3. Now create a layout phtml file for this app/design/frontend/base/default/template/page/cmscustompage.phtml, In this file you can put all the HTML as you wish

Step 4. Now refresh your Magento cache and logout if you have already loggedin then Navigate to the CMS Pages–>Select the Design tab from the left sidebar then you will be able to see your custom layout into the Layout dropdown in Magento Admin. Refer the screenshot below:


Thanks, Hope this helps, Happy Coding