RE: Liferay 7 theme

Mahesh Salunkhe, modified 7 Years ago. New Member Posts: 8 Join Date: 9/5/12 Recent Posts
Can i upgrade 6.2 EE 'theme' to Liferay 7 using 'Liferay Upgrade Tool'?
thumbnail
Joye Luo, modified 7 Years ago. Regular Member Posts: 144 Join Date: 5/3/16 Recent Posts
Hello Mahesh,

You can use gulp upgrade command to upgrade your theme.
Here is the tutorial upgrade liferay theme form 6.2 to 7.0
The code upgrade tool didn't support to upgrade theme now.
Mahesh Salunkhe, modified 7 Years ago. New Member Posts: 8 Join Date: 9/5/12 Recent Posts
Hi @Joye

As you suggested, i tried to upgrade the theme using GULP but seems another error coming '

TypeError: str.indexOf' is not a function

strange thing is , it doesn't show up the theme files in which above error starts populating.

PFA screenshot as well.

Appreciate the extended help.
thumbnail
Joye Luo, modified 7 Years ago. Regular Member Posts: 144 Join Date: 5/3/16 Recent Posts
Hey Mahesh,

Actually, I am not familiar with how to upgrade a theme.
You can post an thread in liferay theme part so that u can get better solution.

Sincerely,
Joye Luo
thumbnail
Chema Balsas, modified 7 Years ago. Regular Member Posts: 127 Join Date: 2/25/13 Recent Posts

Hey Mahesh,

You can follow https://github.com/liferay/liferay-themes-sdk/issues/80 for more information on a fix for this problem. As can be found there, you likely have empty rules like the following:

.portlet-column-content {}
.vv-form-group label {}

You might just as well get rid of as a workaround while we fix the issue

 

Hope that helps!

minh nguyen van, modified 7 Years ago. New Member Post: 1 Join Date: 9/6/10 Recent Posts

Hi Mahesh,

You replace var str = item.str || item;    with     var str = (item.str || item) + "";    in file css.js 

Run gulp upgrade

/BR