全部博文(921)
分类:
2008-05-21 23:58:38
Designer's Guide to Magento
Magento设计者指南
文档章节
1. Magento设计术语
2. Magento工作主题
3. 创建你的柱体
4. 布局设计介绍
Intro to Layouts
布局设计介绍
Layout, by appearance of its components, can easily deceive you into believing that in order to work with it you must first be armed with an extensive knowledge of programming logics. Nothing can be further from the truth. Layout is built with a small set of XML tags that are easy and fun to learn. By learning some key concepts and commands of layout, you will soon be armed with the confidence and knowledge to easily modify your store design to your desired spec.
布局设计,其页面组成能够轻易的让你相信。必须有丰富的编写程序逻辑的知识才能够使我们完成工作。没有任何东西比真理更可信。页面布局有一套简单的的xml标签组成,这些标签学习起来很有趣。学习其关键概念和布局设计的一些命令,你将很快被信心和知识武装起来,并很容易的将你的店铺外观修改成为你想得到的风格。
· 如何布局设计
· 设计解析
· XML规则
· 开始你的快速训练
How Layout Works
如何布局设计
Layout is a virtual component of the Magento application. By modifying the components of layout, you can build your store page in an upgrade-compatible way.
布局实际上是Magento应用的一个组成部分。通过修改布局的组成部分,你能按照一种与升级可兼容的方式创建你的商店页面。
Layout is comprised of default layout and layout updates that are made up of easy-to-learn XML tags. With these layout commands, you can modify/assign content block-structural block relationships and also control store-front functionalities such as loading and unloading of block-specific Javascripts to a page.
布局由缺省布局和简单易学的xml用于内容更新更新局组成。使用这些布局命令,你能修改/定义内容结构区块的结构关系。也能够管理店铺前端诸如特殊js区块再页面的加载和卸载端功能。
Layout files are separated on a per-module basis, every module bringing with it its own layout file (for instance 'catalog.xml' is a layout file for the catalog module, 'customer.xml' is for the customer module...etc). These layout files are located in app/design/frontend/your_interface/your_theme/layout/ and each file is further separated by handles (see diagram 1), each handle (with the exception of
布局文件由基本模块分开。每个模块带来自己拥有的布局配置文件(比如catalog.xml是分类模块的布局配置文件,'customer.xml是客户模块的布局文件。)这些布局文件位于app/design/frontend/your_interface/your_theme/layout/ 下,每一个文件又进一步被句柄分离了,(看图表1),每个句柄(出缺省外)依照店里页面定义了他们嵌套的更新资料。<翻译的乱七八糟,狗屁不通>
Some layout files may contain the
一些布局文件可能包含default句柄,当分解布局文件时,对于几乎所有的布局文件,magento首先得到再
The system is built this way in order to allow seamless addition and removal of modules without effecting other modules in the system.