[开发] liferay5.1.1 theme开发
quickSand
2008-09-26
liferay升级到5.1之后 开发主题怎么都没有反应 修改自带的主题页面也无变化.
当然 清空ie缓存 重新启动tomcat都不管用 后来查看文档发现在portal.properties中有个属性的默认值发生了变化. theme.css.fast.load 默认的是true 修改成false就好了 修改之后就能像以前一样 开发主题了. 下面是文档中相关的叙述. Change in Theme CSS Fast Load In 5.0.1, the default setting for theme.css.fast.load was false which means that when you edited the deployed css files, the changes would take effect immediately on the next page load. Now, for the sake of better out of the box performance, the default in 5.1 has been changed to true. Of course this means that when you edit the deployed css files directly, you would NOT see the changes take effect immediately on the next page load, but rather you would have to make the change in the pre-deployed theme and run the deploy process on the theme for the changes to be bundled and packed into the everything_packed.css file. This of course might make it harder for theme developers to do real-time testing. So, the solution to get the old behavior is simply to revert theme.css.fast.load to false and restart the portal. |
|
xxinglin
2008-11-04
谢谢,我也发现有这个问题。
有个问题想请教你:liferay在5.1以后,theme中的css文件除了everything_packed.css和custom.css文件以外的css文件在什么地方使用过!按照官方的文档似乎说是用户做修改时只能修改custom.css文件,最好不要修改其它的css文件。 |
|
quickSand
2008-11-05
最好修改custom.css是因为这些css在加载的时候 最后加载custom.css
如果你想修改其它css里面的设置 ,你可以把要修改的部分copy到custom.css里面 之后 在做修改. |
|
xxinglin
2008-11-05
everything_packed.css文件和everything_unpacked.css两个文件内容是一样的,主要用途是干什么的!
|
|
fly_ever
2008-11-10
引用 再看ant文件,portal-web/build.xml: 在部署时,把设置的js文件列表合并到文件everything_unpacked.js中,然后使用压缩处理类,压缩成文件everything_packed.js。 具体可以看http://fly-ever.iteye.com/admin/blogs/202532 css文件应该和js文件在这方面应该是一致的。 |
|
devilbaby
2008-11-20
没有反应应该不是因为lz所说的原因,5.1基本上可以用4.x开发出来的theme,只是xml这些配置文件要把它改成制定5.x的版本
|
|
quickSand
2009-01-15
配置文件我是都改了,如果不修改theme.css.fast.load 的话,时是修改5.1自带的主题也是没有任何变化的,我的情况是这样的
|
|
quickSand
2009-01-15
以前在一个官方文档里面看到过关于这个问题的叙述,刚才没有找到那段文档
![]() |
|
flyingcn
2009-02-10
怎么能生成everything_packed.css那种格式的文件?
|