I have upgraded my liferay 5.2 to 6.0 version with the default theme. Now I want to migrate my custom theme from 5.2 to liferay 6.0. What will be step that I can follow so that I can deploy and upgrade liferay 5.0 theme on liferay 6.0. Thanks.
1
votes
Did you try to deploy old theme on 6.0? What happened?
– Martin Gamulin
I want know how to deploy old theme on 6.0. Simply I can copy and paste some folders to liferay 6.0 or something else I am not sure about this. Can you guide me how can I proceed from here ?
– Sunil Rai
Which server do you use? Do you have packaged theme eg. war?
– Martin Gamulin
I am using Tomcat server. And I am not using WAR. Let me know if you want any further information so that it will be convenient for you to guide me from here.
– Sunil Rai
1 Answers
1
votes
Sunil,
First thing you should try is unpacking your Plugins-SDK folder (which I believe you've already done judging by your LinkedIn post).
I normally have the following structure:
- code - This is my Plugins-SDK
- data
- deploy
- tomcat
Then you'll need to modify your ${PLUGINS-SDK}/build.${USERNAME}.properties file to point to your deploy directory.
The you can try copying your Liferay 5 theme folder to your plugins-sdk folder/themes/
Finally run ant clean deploy inside of the themes folder to deploy it.
~~ UPDATE ~~
See the "Writing your theme" section of this page: http://www.liferay.com/community/wiki/-/wiki/Main/Themes+v6.0
This explains about setting up a _diffs folder where you'll add your changes to the default theme. The contents of _diffs is then used to override the defaults.