« 返回到 Upgrade Instructions

Upgrade Themes from 5.2.x to 6.0.x

Alternative Languages: 日本語

Overview #

If you try to load your Liferay 5.2.x themes into 6.0, you'll find that a lot of things break. The reason for this is that with a new UI, we've changed a lot of ID tags and the like. There is a systematic process, however that allows you to convert your 5.2.x themes into 6.0.x compatible themes. It will take some CSS work, along with a few hours of your time.

The Theme Upgrade Process #

  1. Copy your theme's custom.css into custom.css.bak. This is very important because we will be overwriting your custom.css with a clean skeleton CSS file.
  2. Download custom.css. It's a specially commented and designed CSS file that gives exactly where each element of your old theme needs to go.
  3. Copy the new custom.css over your old custom.css. MAKE SURE YOU HAVE YOUR BACKUP (custom.css.bak) IN PLACE -- DO NOT OVERWRITE THAT!
  4. Copy each element's CSS from custom.css.bak into the appropriate places of your new custom.css -- there are code comments to help you know where to put each thing. You will see the broken theme improve incrementally as you copy more of your CSS over. You will probably need to make some tweaks here and there, but overall this process will be relatively mechanical.

At the end, your theme should be functional in 6.0 -- ultimately it's just a matter of changed ID tags and the like.

1 附件
65424 查看
平均 (5 票)
满分为 5,平均得分为 4.0。
评论
讨论主题回复 作者 日期
This is a good start and it appears that my... Patrick Stackpoole 2010年7月20日 上午11:54
[url]http://www.liferay.com/community/wiki/-/wi... Samuel Liu 2010年7月27日 下午12:03
I copy the code you write to the file... Miller Huang 2010年8月11日 上午12:37
It wasn't even close! I found the few comments... Tom Thomas 2011年2月16日 下午3:21
I think it has many things to change, but here,... hongquan thuhuong 2012年1月3日 下午8:00
HI , the link for custom.css is broken. Can you... Pratik Garg 2012年7月10日 下午11:36

This is a good start and it appears that my theme plugin's style now appears as it did in 5.x.

Is there any information on manipulating the dock or exploiting its items? For users in 5.x I had plucked out the Add Application item and placed it as a single link on the top of the page while hiding or removing the dock itself.
在 10-7-20 上午11:54 发帖。
I copy the code you write to the file portal_normal.vm of my theme,but i click the link "Add Application" or "Layout Templates" ,No response
在 10-8-11 上午12:37 发帖以回复 Samuel Liu
It wasn't even close! I found the few comments embedded in the file to be useless. The classic theme used to come with the previous SDK. Where can I get a copy that will work for Liferay 6.0 so I can at least have a frame of reference from which to start?
在 11-2-16 下午3:21 发帖。
I think it has many things to change, but here, you only say about css. beside that, it has template you have to change. Can you explain detail about this process?

thanks
在 12-1-3 下午8:00 发帖。
HI , the link for custom.css is broken. Can you please fix it.
在 12-7-10 下午11:36 发帖。