Reputation: 3774
How to add a layout on magento system? I want to add a new layout which can be selected from administration panel as well.
I am trying to make two layout on the website. One layout with banner and another without banner. Lets say I want
2Columns-right.phtml
and 2Column-right-wBanner.phtml
How to add this?
Upvotes: 0
Views: 172
Reputation: 3836
For This you Need to create a custom module.
In Module etc/config.xml copy following code:
<?xml version="1.0"?>
<config>
<global>
<page>
<layouts>
<custom_layout_wbanner>
<label>Custom Layout Banner</label>
<template>page/2Column-right-wBanner.phtml</template>
</custom_layout_wbanner>
</layouts>
</page>
</global>
</config>
Hope This Help !!
Upvotes: 2