Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
对于 Magento
位于 /customer/account/login/ 的页面使用 1column.phtml 作为其主要模板。当然我知道我可以编辑 login.phtml 但这不是我需要的。那已经太深了。我需要切换负责登录页面外观的第一个模板文件。在我的例子中是 1column.phtml。例如,我希望登录页面使用 paul.phtml。我该怎么做?我在哪里专门为登录页面分配一个新的模板文件?
只需创建您的模板文件并将其分配给 customer.xml 中的客户登录页面。
<customer_account_login translate="label"> <reference name="root"> <action method="setTemplate"><template>page/paul.phtml</template></action> </reference> </customer_account_login>