jcadima
4/22/2016 - 7:33 PM

Creating a Second Custom Template

Creating a Second Custom Template

ref:  http://stackoverflow.com/questions/9748966/magento-custom-template

Notice the new folder creation
1) Create /app/code/local/testimonials/Page/etc/config.xml

<?xml version="1.0" encoding="utf-8"?>
<config>
<modules>
    <Testimonials_Page>
    <version>0.1.0</version>
    </Testimonials_Page>
</modules>
<global>
    <page>
    <layouts>
        <custom_cms module="page" translate="label">
        <label>Custom Testimonials Page</label>
        <template>page/1column-testimonials.phtml</template>
        <layout_handle>custom_testimonials_page</layout_handle>
        </custom_cms>
    </layouts>
    </page>
</global>
    <frontend>
        <layout>
            <updates>
                <easylife_layout>
                    <file>testimonials_page.xml</file>
                </easylife_layout>
            </updates>
        </layout>
    </frontend>
</config>



2)  Create /app/etc/modules/Testimonials_Page.xml 
<?xml version="1.0"?>
<config>
<modules>
    <Testimonials_Page>
    <active>true</active>
    <codePool>local</codePool>
    </Testimonials_Page>
</modules>
</config> 



3) Create the custom phtml file:  /page/1column-testimonials.phtml
in /cendo/ma_cendo1/template/page/