Magento目录页设置布局及添加新布局的方法
  
  
   时间:2014-05-31 02:52来源:未知 作者:最模板zuimoban 点击:
   
   次
  
  
  Magento目录页设置布局: 在catalog.xml的default里添加 reference name=root action method=setTemplatetemplatepage/2columns-left.phtml/template/action action method=setIsHandleapplied1/applied/action /reference 就把Magento的目录布局从
  
  
   
    
     | 
       
	Magento目录页设置布局 : 
	在catalog.xml的<default>里添加 
	<reference name="root"> 
	<action method="setTemplate"><template>page/2columns-left.phtml</template></action> 
	<action method="setIsHandle"><applied>1</applied></action> 
	</reference> 
	就把Magento的目录布局从3列设成带左侧的两列了。 
	Magento添加新布局 方法: 
	在app/code/core/Mage/Page/etc/config.xml这个文件里的<global><page><layouts>里面添加 
	<new_columns module="page" translate="label"> 
	<label>new column</label> 
	<template>page/new.phtml</template> 
	<layout_handle>page_new_columns</layout_handle> 
	</new_columns> 
	在后台选择布局的时候就多了new column这个选项。或者通过上面代码选择这个新布局。 
      
      (责任编辑:最模板) | 
    
   
   
  
  
  
  
   ------分隔线----------------------------