CSS和JavaScript可在必要时添加到模板原型中。这个选项在/default/template/prototype配置中并未使用,因为所有必要的样式表和
JavaScripts都包含在缺省的pop主题里了。pop
主题引用自网站定义/theme节点。
参考主题和htmlHeader区域以获得更多关于标准配置的信息。
以下配置样例在模板原型级别添加了一个额外的JavaScript和CSS文件,具体配置是在STK > 网站定义 /default/templates/prototype/cssFiles
和/jsFiles
里。
节点名 | 值 |
---|---|
default | |
templates | |
prototype | |
cssFiles | |
styles | |
farFutureCaching | true |
link | /resources/templating-kit/prototype/css/styles.css |
media | screeen |
jsFiles | |
fireworks | |
farFutureCaching | true |
link | /resources/templating-kit/prototype/js/fireworks.js |
这个JavaScript为页面添加了烟花效果,CSS表改变了页眉背景色。请注意htmlHeader脚本是如何添加额外的JavaScript到head
元素的。
Overview
Content Tools