0 magento
我知道:我们可以通过使用其布局句柄更新magento视图的布局,例如" http://domain.com/shops/index.php/customer/account/index/ "它有一个布局句柄,如使用在local.xml中,我们可以更新该特定视图的布局,例如删除购物车侧边栏,如下所示
<layout version="0.1.0">
<customer_account_index>
<remove name="cart_sidebar"/>
</customer_account_index>
</layout>
Run Code Online (Sandbox Code Playgroud)
而我想知道的是,我创建了一个菜单项,如men-> Tshirts,它会像" http://domain.com/shops/index.php/men/t-shirts.html " 那样进入网址,如何从此页面中删除购物车边栏?
您有类别的常规布局catalog_category_view
,但Magento还会为类别加载特定的布局句柄,<CATEGORY_{ID_HERE}>
以便<CATEGORY_5>
您可以使用例如您还可以在设计选项卡下的类别编辑页面中指定自定义布局代码.您也可以通过编辑它们来设置它的子项以继承它.