Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • how to migrate liferay theme from one installation to another

    • 0
    • 4
    • 1
    • 3
    • 0
    • 0
    • 0
    • 0
    • 1.23k
    Comment on it

    Sometime we need to migrate theme from one installation another. We can do this easily by following the below steps:

    1). Create a new theme in Liferay 6.2 using this command.

    ./create.sh themename ThemeDisplayName
    

    themename = The Name of your theme.

    ThemeDisplayName = The Name of theme which you can see in Manage page>look and feel in liferay GUI Application.

    Note: Assign execute permission to your "create.sh" in "/liferay-plugins-sdk-6.2.0/themes/" folder.

    2). Deploy the created theme by command.

    ant deploy
    

    3). Copy the oldertheme(6.1)>docroot>_diffs>images folder and paste it in newtheme(6.2)>docroot>_diffs.

    4). Copy the oldertheme(6.1)>docroot>_diffs>templates folder and paste it in

    newtheme(6.2)>docroot>_diffs.

    5). Copy the oldertheme(6.1)>docroot>diffs>js folder and paste it in

    newtheme(6.2)>docroot>diffs>js.

    6). Compare olderthemes css files with new themes css files.


    Ex. :   Lets take portlet.css. So,first compare oldertheme(6.1)>docroot>diffs >css >portlet.css with newtheme(6.2)>docroot>css>portlet.css .
    If you find any changes in same css class then add those changes in custom.css of new theme. Repeat step-6 until you complete to compare all the css files.

    Deploy new theme.

    Hope this will help you. Enjoy coding :)

 0 Comment(s)

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: