Vista combinada Visión Plana Vista de árbol
Discusiones [ Anterior | Siguiente ]
toggle
Kesava Kota
Not able to change theme dynamically
26 de marzo de 2011 6:27
Respuesta

Kesava Kota

Ranking: New Member

Mensajes: 14

Fecha de incorporación: 28 de febrero de 2011

Mensajes recientes

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 de marzo de 2011 6:44
Respuesta

Alexandre FILLATRE

Ranking: Junior Member

Mensajes: 80

Fecha de incorporación: 2 de diciembre de 2010

Mensajes recientes

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