DotNetNuke Skinning Whitepaper 翻译记录(皮肤包部分)

翻译: 

皮肤包

 

皮肤包或者容器包由构成一个完整皮肤的大量文件组成:

 

  • *.htm, *.html 文件——在皮肤上传机制中用来建立*.ascx文件的皮肤定义文件。
  • *.ascx 文件—— 皮肤机制对html文件进行必须的格式化和预编译后产生的用于定义皮肤的用户控件。
  • *.css 文件——与皮肤相对应的样式表文件。
  • *.gif, *.jpg, *.jpeg, *.png ——皮肤中的图形文件。
  • *.* ——其他在皮肤中使用到的资源文件(注意需要在站点上传文件拓展名设置中允许上传。)

 

一个皮肤包中可以包含多个的皮肤文件,这允许设计者可以创建多个拥有相同图片,但在布局方面却略有差别的系列皮肤。显然,当你将作一些常规表现层的修改,包含越多的皮肤文件就需要更多的工作。

 

大多数“包裹”体系使用文件清单的概念来识别包裹中的各种文件并定义额外的包裹属性。虽然这种概念有利于原始数据的性能,但是同时引进了额外的创建和维护的工作。对于产品的维护,我们的主要观点是:简单的将这些文件压缩成一个压缩包比起引进一个清单具有更大的好处。
原文: 

Skin Package

 

A skin or container package is comprised of multiple files which constitute a complete skin:

 

  • *.htm, *.html files – abstract skin definition files which will be processed by the skin uploader to create an *.ascx file
  • *.ascx files – skin definition user controls which are precompiled in the format required by the skin engine.
  • *.css files – styles sheets related to skins
  • *.gif, *.jpg, *.jpeg, *.png – supporting graphics files
  • *.* - any other resource files required for your skin ( please note that the allowable file extensions are secured by the Host File Upload Extensions setting )

 

 

A skin package can contain multiple skin files. This allows you to create skins which leverage the same graphics but vary slightly based on layout. Obviously the more skin files you have in a package, the more maintenance will be required when you wish to make a general change to the presentation in the future.

 

Most “packaging” schemes employ the concept of a manifest file to identify the various files included in the package and define additional package attributes. Although this concept has benefits in terms of the metadata capability, it also represents another artifact which needs to be created and maintained for the life of the package. Maintaining our product focus, we felt the simplicity of zipping a group of files into a package far exceeded the benefit provided by introducing a manifest requirement.

DotNetNuke Skinning Whitepaper 翻译记录:
DotNetNuke Skinning Whitepaper 翻译记录(简介部分)
DotNetNuke Skinning Whitepaper 翻译记录(术语与win客户端程序部分)
DotNetNuke Skinning Whitepaper 翻译记录(技术部分)
DotNetNuke Skinning Whitepaper 翻译记录(定义部分--大厨师翻译)
DotNetNuke Skinning Whitepaper 翻译记录(DotNetNuke部分)
DotNetNuke Skinning Whitepaper 翻译记录(总揽部分)
DotNetNuke Skinning Whitepaper 翻译记录(文件组织部分--大厨师翻译)
DotNetNuke Skinning Whitepaper 翻译记录(页面处理部分)

你可能感兴趣的:(dotnetnuke)