xml Magento产品网格,产品页面参考

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了xml Magento产品网格,产品页面参考相关的知识,希望对你有一定的参考价值。

The cart pagefile path: app/design/frontend/base/default/template/checkout/cart.phtmllayout handle: <checkout_cart_index>the login area: app/design/frontend/base/default/template/customer/form/login.phtmllayout handle: <customer_account_login>the user account registration page: app/design/frontend/base/default/template/customer/form/register.phtmllayout handle: <customer_account_create>Product GridLet's suppose that we want to set the main template for the default category view to one column; in this case, we have to insert the action setTemplate into the catalog_category_default handle in the following manner:   <catalog_category_default>     <reference name="root">     <action method="setTemplate">       <template>page/1column.phtml</template>     </action>     </reference>   </catalog_category_default>         If we want to set a different template, for example, two columns with the right-hand side sidebar for the layered categories, we will have to set the action in the other handle as follows:         <catalog_category_layered>     <reference name="root">     <action method="setTemplate">       <template>page/2columns-right.phtml</template>     </action>     </reference>   </catalog_category_layered>      Product Page:If you decide to set to 1 column, change the root template to the 1column template as given in the following code:   <catalog_product_view>     <reference name="root">       <action method="setTemplate">         <template>page/1column.phtml</template></action>     </reference>   </catalog_product_view>

以上是关于xml Magento产品网格,产品页面参考的主要内容,如果未能解决你的问题,请参考以下文章