Laliwala IT Services

Laliwala IT Services
Website Development

Liferay Question Answer 3

Alex Filippovich : Liferat 5.2 + _diffs + css not load
Hello.

I have LifeRay 5.2 on Glassfish.

I create theme with Pludins SDK.

















So i have problem. No one of CSS files doesn't
load emoticon (js files is okay)

Tell me please where is my problem?

thanks
Mazhar Anwar : RE : Liferat 5.2 + _diffs + css not load
Hi,



When you deploy theme to server, Please check its path.

Folder structure in server should be /operator-evolution-theme-theme/
css/*.css files.(It should not have _diffs folder and all)

And check your main.css, does it includes all other css files in that.

HTH.
Alex Filippovich : i try create new clean theme for testing.

My steps:

1. create theme with sdk.

2. i build.xml i edit:








So, if i understand correctly, it should be just copy of Classic Theme.

3. Buld war file



















4. Uploding WAR file to liferay via Upload File

5. Go to the Manage Pages -> Choise page -> Look and
Feel -> choise my Test Theme

6. Go to the test page - no styles emoticon

In Firebag next:










By the way, in portal-ext.properties i have:


Mazhar Anwar : How are you generating .war file?


Can you please unzip your WAR and make sure the folder
structure as follows, (It should not have docroot too.)

/test-theme.war
---css

---images

---javascript

---templates

---WEB-INF


Regards,
Alex Filippovich : Yes, everething is fine.

You can see that everething is okay in attached file.


But when i upload theme to the liferay andchoise it i see next:


Mazhar Anwar : Hi Alex,

It seems new theme is not getting parent CSS which you have set as classic in build.xml.

Simple solution is just copy the css folder from your SERVER_ROOT/
html/themes/classic/_diffs/css and paste it inside _diffs folder of new theme.
It will fix the problem.

Regards,

Alex Filippovich : Hi Mazhar Anwar,

i copy files and run build again. upload WAR file to liferay, but nothing to change.

LifeRay loading only one CSS file with styles of ".uni-form".

WAR file in attach.
Attachments: test-sdk-theme-5.2.2.1.war (783.0k)
Gowtham Mani : Hi Alex,

I tried deploying your war file into my liferay server and it is working fine,
all the css are loading fine.

Regards,

Gowtham M
Mazhar Anwar : Hey Alex,

Your attached .war file is working perfectly for me emoticon

I am able to see all the changes.

Can you please clear browser cache and servers temporary files?
Alex Filippovich : Gowtham Mani, Mazhar Anwar

You was right.

I install clean liferay+tomcat local and upload theme - everething is okay.

it seems that that something wrong with glassfish server emoticon

thanks all of you for help!!!