Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Nathan Courtial
Custom theme deploy problem
September 19, 2012 9:43 AM
Answer

Nathan Courtial

Rank: New Member

Posts: 14

Join Date: July 9, 2012

Recent Posts

Hello,
I'm developping a custom theme for my Liferay 6.1.1 GA2 portal using Eclipse IDE.
When deploying theme using Eclipse Liferay SDK deploy command, the theme is properly deployed and applied.
But when I deploy the theme directly into a Liferay instance launched by startup.bat, the theme seems to be deployed but doesn't appear when applied to a site.
Would there be a difference between an IDE Liferay server instance and a standalone instance?

Thanks in advance for your responses.

Regards,
Nathan Courtial
David H Nebinger
RE: Custom theme deploy problem
September 19, 2012 10:01 AM
Answer

David H Nebinger

Community Moderator

Rank: Liferay Legend

Posts: 11295

Join Date: September 1, 2006

Recent Posts

Usually for your IDE instance you disable a lot of the caching, etc., because as a developer you want to see the changes immediately.

For the standalone instance, however, the developer settings (as they're called) are not defined in the portal-ext.properties so there's caching stuff involved.

Try clearing the cached items in the control panel and clear your browser cache to see if that has the expected impact you want.
Nathan Courtial
RE: Custom theme deploy problem
September 21, 2012 12:17 AM
Answer

Nathan Courtial

Rank: New Member

Posts: 14

Join Date: July 9, 2012

Recent Posts

I tried to do like you advise :
  • Clear cached item
  • Clear browser cache

but it didn't change the behaviour.

In the other hand, a workaround solution was to deactivate property theme.css.fast.load=true to disable css cache.
Would it be interesting to log this behavior on jira issue?

Regards,
Nathan Courtial
George Oakley
RE: Custom theme deploy problem
October 5, 2012 6:11 AM
Answer

George Oakley

Rank: New Member

Posts: 6

Join Date: October 5, 2012

Recent Posts

Nathan Courtial:
Hello,
I'm developping a custom theme for my Liferay 6.1.1 GA2 portal using Eclipse IDE.
When deploying theme using Eclipse Liferay SDK deploy command, the theme is properly deployed and applied.
But when I deploy the theme directly into a Liferay instance launched by startup.bat, the theme seems to be deployed but doesn't appear when applied to a site.
Would there be a difference between an IDE Liferay server instance and a standalone instance?

Thanks in advance for your responses.

Regards,
Nathan Courtial



Probably these properties solve your problem:
http://mdshannan1.blogspot.com/2010/12/running-liferay-in-developer-mode.html
or
http://hanafiisa.blogspot.com/2010/03/understanding-css-in-liferay.html

Regards,
Michal
Tad Fox
RE: Custom theme deploy problem
October 9, 2012 9:51 AM
Answer

Tad Fox

Rank: New Member

Posts: 11

Join Date: April 19, 2012

Recent Posts

It caches CSS an JS pretty deeply. Sometimes if you go directly to the URL of the CSS or JS and refresh, that'll work too.
Alberto Chaparro
RE: Custom theme deploy problem
October 10, 2012 2:46 AM
Answer

Alberto Chaparro

LIFERAY STAFF

Rank: Regular Member

Posts: 155

Join Date: April 25, 2011

Recent Posts

Hi Nathan,

Could it be related to this issue http://issues.liferay.com/browse/LPS-29690?

Cheers.
Nathan Courtial
RE: Custom theme deploy problem
October 15, 2012 11:20 PM
Answer

Nathan Courtial

Rank: New Member

Posts: 14

Join Date: July 9, 2012

Recent Posts

Hi Alberto,
Yes, it's the same behaviour described in this issue.
A workaround was to deactivate theme.css.fast.load in portal-ext.properties before deploying theme and reactivate it after.
But it isn't an hot efficient workaround.

Regards,
Nathan.
Alberto Chaparro
RE: Custom theme deploy problem
October 21, 2012 11:01 AM
Answer

Alberto Chaparro

LIFERAY STAFF

Rank: Regular Member

Posts: 155

Join Date: April 25, 2011

Recent Posts

Hi Nathan,

If you are experiencing the same error than that LPS, that workaround won't work, the LPS explains the proper workaround:
Workaround:

Copy the file main.css located in{theme_path}/docroot/css/ to {theme_path}/docroot/_diffs/css and deploy the theme (in Linux you could need execute the touch command to change the modification date)

Thanks.
Vladimir Vukadinovic
RE: Custom theme deploy problem
November 20, 2012 3:46 AM
Answer

Vladimir Vukadinovic

Rank: New Member

Posts: 8

Join Date: December 24, 2008

Recent Posts

I have a same situation. But on Windows can't help any solution.

Regards,
Vladimir