Vista combinada Visión Plana Vista de árbol
Discusiones [ Anterior | Siguiente ]
toggle
Chintan Akhani
Route CSS Through Apache
14 de mayo de 2012 7:15
Respuesta

Chintan Akhani

Ranking: Regular Member

Mensajes: 111

Fecha de incorporación: 13 de marzo de 2008

Mensajes recientes

Hi All,

I am facing css issue while routing it through apache server. It seems like that issue is because so many css classes have dynamic path for images and it contains "@theme_image_path@" and I believe because of that css are not getting loaded properly. Please provide your view on Same.

Thanks,
Chintan
Ritabrata Mukherjee
RE: Route CSS Through Apache
11 de agosto de 2014 13:35
Respuesta

Ritabrata Mukherjee

Ranking: New Member

Mensajes: 15

Fecha de incorporación: 12 de marzo de 2014

Mensajes recientes

Hi Chintan,
Did you find any solution for this issue ?

Thanks,
Rito
David H Nebinger
RE: Route CSS Through Apache
11 de agosto de 2014 15:37
Respuesta

David H Nebinger

Ranking: Liferay Legend

Mensajes: 7157

Fecha de incorporación: 1 de septiembre de 2006

Mensajes recientes

The CSS in your theme is yours to edit and change to remove the references, just replace with the correct value and you can move it back to apache.
Ritabrata Mukherjee
RE: Route CSS Through Apache
14 de agosto de 2014 10:33
Respuesta

Ritabrata Mukherjee

Ranking: New Member

Mensajes: 15

Fecha de incorporación: 12 de marzo de 2014

Mensajes recientes

Thanks for the reply David. The errors I get are from the Liferay default themes 'classic' and 'control_panel'. Should I change those CSS files manually, or are there any locations in Liferay where the parsed 'final' CSS are present - which I can copy over to the web server.
David H Nebinger
RE: Route CSS Through Apache
14 de agosto de 2014 11:56
Respuesta

David H Nebinger

Ranking: Liferay Legend

Mensajes: 7157

Fecha de incorporación: 1 de septiembre de 2006

Mensajes recientes

You'd have to modify them, probably through a hook.

But you need to ask yourself whether you really want to go down this path. You can front the static files w/ apache httpd, but maintaining it is a nightmare. When you deploy a theme to Liferay, you also have to copy the static files to the appropriate path on the web server, and this is pretty much a manual process.

I think the better approach these days is to use varnish or mod_cache. That way your single deployments work and you can still leverage caching to improve return speed...