Vista Combinata Vista Piatta Vista ad Albero
Discussioni [ Precedente | Successivo ]
toggle
Kesava Kota
Not able to change theme dynamically
26 marzo 2011 6.27
Risposta

Kesava Kota

Punteggio: New Member

Messaggi: 14

Data di Iscrizione: 28 febbraio 2011

Messaggi recenti

Hi,

We have a custom theme created for our community. Even for a minor change we have to restart tomcat for the change to get reflected. Is there a way to dynamically change the theme with out restarting the tomcat. Please help us as this is really making things hard for us to progress.

Thanks,
Kesava
Alexandre FILLATRE
RE: Not able to change theme dynamically
26 marzo 2011 6.44
Risposta

Alexandre FILLATRE

Punteggio: Junior Member

Messaggi: 80

Data di Iscrizione: 2 dicembre 2010

Messaggi recenti

Hi Kesava,

By default, Liferay is using it's own cache, to render pages faster. You'll need to deactivate it in development environments.
I suggest you take a look at the file named "portal-developer.properties", located in the Liferay source (the real sources, not the ext or plugin projects).

Those caches work for Javascript, velocity, etc. We usually deactivate all of them in our development plateforms. To do so, just include "portal-developer.properties" in your portal-*.properties (usually not the portal-ext.properties, as you don't want to get ride of the caches in a production environement).

1
2include-and-override=portal-developer.properties


If you only want the theme caches to be removed, just add the following lines in portal-ext.properties
1theme.css.fast.load=false
2theme.images.fast.load=false


Regards,
Alexandre FILLATRE