建站资讯

magento主题风格开发设计实践活动QUICK GUIDE TO BUI

作者:admin 发布时间:2020-11-21
Sample skeleton template,文档编码以下。

部位在:app/design/frontend/design_package/theme_variation/template/page/xx.phtml

姓名起一个。和主题风格有关就可以。

----------

DEFAULT LAYOUT VERSUS LAYOUT UPDATES
There are two types of layouts default and updates. A default layout (page.xml) is the layout that by default applies itself to almost every page in the store. All other layout files are Layout Updates that simply updates the default layout on a per-page basis.

layout有二种,一种是default layout,这一通常为page.xml

另外一种是layout updates

 

Let s take for example your skeleton template: In the default layout, you have it set to three columns, which means by default most all of the page in your store will have the three column page structure. But it is not the three column structure you need for your product page. For IT, you want a two-column structure that includes a right column. modate this, you will leave the default layout alone and open catalog.xml in which you can place mands that tells the application to load the two-column structure to your product page instead of the default three. This is called the process of updating a layout.


Example method of assigning skeleton template:

给catalog再次分派page模版:
reference name= root
action method= setTemplate template page/2columns-right.phtml /template /action
/reference


Let s take another example: Say by default that you want a newsletter sign-up box in your right column, but in customer account pages you want to exclude it. In this case, you would leave your default layout alone and open up customer.xml, into which you will mand that unsets the newsletter content block, excluding the newsletter functionality from the page.

 

 

 


收缩