Chinaunix首页 | 论坛 | 博客
  • 博客访问: 4997999
  • 博文数量: 921
  • 博客积分: 16037
  • 博客等级: 上将
  • 技术积分: 8469
  • 用 户 组: 普通用户
  • 注册时间: 2006-04-05 02:08
文章分类

全部博文(921)

文章存档

2020年(1)

2019年(3)

2018年(3)

2017年(6)

2016年(47)

2015年(72)

2014年(25)

2013年(72)

2012年(125)

2011年(182)

2010年(42)

2009年(14)

2008年(85)

2007年(89)

2006年(155)

分类:

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 ) assigning its nested updates to the according specific page in the store.

 

布局文件由基本模块分开。每个模块带来自己拥有的布局配置文件(比如catalog.xml是分类模块的布局配置文件,'customer.xml是客户模块的布局文件。)这些布局文件位于app/design/frontend/your_interface/your_theme/layout/ 下,每一个文件又进一步被句柄分离了,(看图表1),每个句柄(出缺省外)依照店里页面定义了他们嵌套的更新资料。<翻译的乱七八糟,狗屁不通>

 

Some layout files may contain the handle. When parsing the layout files, Magento first grabs the layout updates assigned in the handle of almost all layout files, reading them in the order as assigned in app/etc/modules/Mage_All.xml. It then parses the page-specific layout update, finalizing the building of a store page.

 

 

一些布局文件可能包含default句柄,当分解布局文件时,对于几乎所有的布局文件,magento首先得到再句柄中被定义的更新资料,按命令阅读他们正如在app/etc/modules/Mage_All.xml中所定义的,然后对页面布局更新做具体的语法分析,最终确立商店的页面的组成。

 

The system is built this way in order to allow seamless addition and removal of modules without effecting other modules in the system.

 

系统的这样的实现方式是为了实现和其他系统模块的无缝组合和切除
阅读(2564) | 评论(1) | 转发(0) |
给主人留下些什么吧!~~

chinaunix网友2008-06-29 00:47:49

你的QQ是多少啊