Fórum
Access custom CSS from the Liferay server
Ash J, modificado 12 Anos atrás.
Access custom CSS from the Liferay server
Junior Member Postagens: 83 Data de Entrada: 22/03/11 Postagens Recentes
Hi,
I have got 10 portlets to be deployed to liferay. I have a CSS file which is used by all the 10 portlets. Instead of adding the CSS file in all the 10 portlets, I would like to place this CSS file in Liferay and access it in the JSPs of all the portlets.
Could someone please let me know where this CSS needs to be placed in Liferay and what will be the URL to access this CSS from JSP.
Thanks,
-ash
I have got 10 portlets to be deployed to liferay. I have a CSS file which is used by all the 10 portlets. Instead of adding the CSS file in all the 10 portlets, I would like to place this CSS file in Liferay and access it in the JSPs of all the portlets.
Could someone please let me know where this CSS needs to be placed in Liferay and what will be the URL to access this CSS from JSP.
Thanks,
-ash
David H Nebinger, modificado 12 Anos atrás.
RE: Access custom CSS from the Liferay server
Liferay Legend Postagens: 14914 Data de Entrada: 02/09/06 Postagens Recentes
You can create and use a custom theme to include your CSS. If the CSS is in the theme, you don't have to worry about path issues in your portlet plugins, you just use the classes you expect to be in there.
Balaji Murugesan, modificado 12 Anos atrás.
RE: Access custom CSS from the Liferay server
Junior Member Postagens: 74 Data de Entrada: 10/11/10 Postagens Recentes
Hi,
You can place your all your CSS files under your Server's ROOT/html/css folder and in your JSP below code should do your job
<link rel="stylesheet" href="/html/css/file.css">
You can place your all your CSS files under your Server's ROOT/html/css folder and in your JSP below code should do your job
<link rel="stylesheet" href="/html/css/file.css">
Ash J, modificado 12 Anos atrás.
RE: Access custom CSS from the Liferay server
Junior Member Postagens: 83 Data de Entrada: 22/03/11 Postagens Recentes
Thanks Balaji. It worked