please help me !

classic Classic list List threaded Threaded
2 messages Options
ryanwhite96 ryanwhite96
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

please help me !

This post has NOT been accepted by the mailing list yet.
How to add additional CMS layout templates?
sophiamoore24 sophiamoore24
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: please help me !

This post has NOT been accepted by the mailing list yet.
        First of all it is used when creating or editing any CMS page from admin interface. So to add new template we need to change in app/code/core/Mage/Page/etc/config.xml
                                                                       
        Create new template file in following directory or and name it for example top.phtml
        app/design/frontend/default/default/template/page
                                                                       
        Now in config.xml add below code under the <layouts> tag
                                                                       
<top>  //start layout
<label>Top</label>  // layout name
<template>page/top.phtml</template>  // template file
</top>  // end layout
                                                                       
        That's it. You can now add this template to any CMS.
                                                                       
        Notes: when you upgrade magento you need to take backup of this config.xml otherwise your change will not effect after upgrade.
                                                                       
                                                                       
                                                                       
Loading...