jcadima
1/19/2017 - 3:58 PM

Adding new magento layout in local.xml (works only for 1st extra template)

Adding new magento layout in local.xml (works only for 1st extra template)


http://www.implementek.com/adding-new-page-layout-for-magento-cms-pages/#.WIDgobYrKV4

1) To make a new template, first we need to create phtml file with your template and save it in
app/design/frontend/default/your-theme/template/page

2) Then open local.xml (app/etc/local.xml). Somewhere on 55th line of code, right below
<session_save><![CDATA[files]]></session_save>

3) insert the <cms></cms> section only

4) NOTE: it must be inside the <global></global> section
<?xml version="1.0"?>
<config>
    <global>
        <install>
            <date><![CDATA[Mon, 20 Jun 2016 22:17:04 +0000]]></date>
        </install>
        <crypt>
            <key><![CDATA[9111069bfd582a6442ac1da3f6d88d78]]></key>
        </crypt>
        <disable_local_modules>false</disable_local_modules>
        <resources>
            <db>
                <table_prefix><![CDATA[]]></table_prefix>
            </db>
            <default_setup>
                <connection>
                    <host><![CDATA[localhost]]></host>
                    <username><![CDATA[popbetas_umi2]]></username>
                    <password><![CDATA[Funkd8479#]]></password>
                    <dbname><![CDATA[popbetas_umi2]]></dbname>
                    <initStatements><![CDATA[SET NAMES utf8]]></initStatements>
                    <model><![CDATA[mysql4]]></model>
                    <type><![CDATA[pdo_mysql]]></type>
                    <pdoType><![CDATA[]]></pdoType>
                    <active>1</active>
                </connection>
            </default_setup>
        </resources>
        <session_save><![CDATA[files]]></session_save>
    
    <!-- this is our sample block  -->
		<cms>
			<layouts>
				<redirect>
					<label>Careers Page</label>
					<template>page/careers.phtml</template>
				</redirect>
			</layouts>
		</cms>        
        
        
        
    </global>
    <admin>
        <routers>
            <adminhtml>
                <args>
                    <frontName><![CDATA[admin]]></frontName>
                </args>
            </adminhtml>
        </routers>
    </admin>
</config>