Some times you want to add additional layout template rather than the layout template given by Magento by default to a page from the admin interface. By creating this custom layout we have more choice to add CMS layout template options to the CMS page and this layout can also assign to your custom module.
In order to create a custom layout you have to create a new module. For doing this you have to create only the configuration file that updates the section that lists the availableCMS layout templates. Here Multiple_Layout is my module where Multiple is the namespace and Layout is the module-name. The code of the etc file is in the following directory app>code>local>Multiple>Layout>etc
Also Read: Top Nine Websites With Astounding Webpage Designs
Here custom_layout name is the layout name. You can assign page template design as custom_layout. Then go to the following directory app > etc > modules. Create the XML file Multiple_Layout.xml to enable your module
Then in app > design > frontend > your interface > your theme > template. Just create the template file custom_layout.phtml. In this file we describe the layout design, whether it is 1column or 2column-left or 2column-right or 3column. Just copy the code from the corresponding phtml file. This file is located in the app > design > frontend > base > default > template > page directory. I have added the 2columns-left.phtml codes. My custom_layout.phtml files code is given below
Following this, in app > design > frontend > your interface > your theme > layout just create the local.xml file. It is used to assign blocks in your layout.The code is
In this layout I have inserted blocks like searchbox, newsletter and custom block in the left bar. That’s all as your custom layout is ready for use.
Adding a new reference in Magento
In magento we have few structual blocks like header, footer, content, etc. These structual blocks are used to display the template files or other blocks. Our goal is to create a new structural block.
To create a new structural block just declare the block in your page.xml file. This File is located in app > design > frontend > base> default > layout. In page.xml just add the following code under the <default> tag.
Your new structural block is created. Here, “new-content” is the reference name. Call this structural block in your template in the following way
Then in your app > design > frontend > your interface > your theme > layout, create the local.xml file. In this xml file just add what you want to display in your newly created block. I have assigned a phtml file.
Then create the word.phtml file in your app > design > frontend > your interface > your theme > template under ‘Hello’ folder. In this template file, you can display what you want to display