留言板

Custom Themes and portal-developer.properties

Pawan Thakur,修改在8 年前。

Custom Themes and portal-developer.properties

Junior Member 帖子: 37 加入日期: 15-5-11 最近的帖子
Hello,

So while developing themes I came across this issue.

https://www.liferay.com/community/forums/-/message_boards/message/54093887

after reading on another post I added this line to my portal-ext properties

include-and-override=portal-developer.properties

This solved it and my changes from the custom.css started to show up.
All good.

Now when I was done I created .WAR of all plugins and then deployed to my staging server and BOOM! All I was left with was broken UI / CSS pages with messed up layouts. It was like some part of my css was loaded and some was not.

Kept debugging for half an hour to see what has happened during the deployment. Finally realized it could be this
include-and-override=portal-developer.properties
again so added this to the portal-ext.properties and everything is back.

I am seeking validation here to my approach, because I am not sure whether this attribute is just used while developing or it can be used later at production as well. If NO, then what is the way to do it.

Note:
I know the _diff folder approach but that is for Liferay Plugin SDK and but I read that ' with Maven the web roots directory is equivalent to _diff '

Appreciate any clarities.
Pawan
Pawan Thakur,修改在8 年前。

RE: Custom Themes and portal-developer.properties

Junior Member 帖子: 37 加入日期: 15-5-11 最近的帖子
***** bump *****