私のホームページにカスタムテンプレートを作成しました。私は、ファイルの下に作成しました:
1.アプリの/ etc /モジュール/ Test_Layout.xmlMagentoカスタムテンプレート
<?xml version="1.0"?>
<config>
<modules>
<Test_Layout>
<active>true</active>
<codePool>local</codePool>
<depends>
<Mage_Page />
</depends>
</Test_Layout>
</modules>
</config>
2.アプリ/コード/ローカル/テスト/レイアウトの/ etc/config.xmlに
<?xml version="1.0"?>
<config>
<modules>
<Test_Layout>
<version>0.1.0</version>
</Test_Layout>
</modules>
<global>
<page>
<layouts>
<test_layout translate="label">
<label>Test Layout</label>
<template>page/home.phtml</template>
<layout_handle>page_home</layout_handle>
</test_layout>
</layouts>
</page>
</global>
</config>
を3./etc/modules/Mage-All.xmlにappしてそこにモジュールを追加します。
4.これらの後、私の新しいモジュールはsys-> config-> advanced-> advancedのリストにあり、
5. CMS->ページ - >デザイン - >カスタムレイアウト - >テストレイアウト & カスタムTHEME-> defualt /テスト(結果がドロップダウンリストに表示されます。)
6.Besideこれらの、私が設定した、カスタマーのレイアウト/ page.xml:
<block type="page/html" name="root" output="toHtml" template="page/home.phtml">
(タイプについてはわかりません)
結果:Magentoは私のカスタムpage.xmlを使用しますが、ではが私のカスタムテンプレート "template/home.phtml"を使用せず、そのデフォルトテンプレートを使用します。
あなたは私を助けてくださいだろう - ?Thxを
http://cmsblogheart.wordpress.com/2014/02/11/magento-custom-page-templates-using-xml/ –