Fórum

How to use <portlet:namespace> in main.css file

thumbnail
Megesh Damre, modificado 6 Anos atrás.

How to use <portlet:namespace> in main.css file

New Member Postagens: 24 Data de Entrada: 27/04/17 Postagens Recentes
Hi Guys,
could you tell me what is the way to use portlet namespace in main.css file of plugin project ? in Liferay 7. emoticon
if we use <portlet:namespace/> tag in main.css file then while ant deploy time throwing com.liferay.sass.compiler.jni.internal.JniSassCompilerException:

Thank And Regards
Megesh Damre
thumbnail
Olaf Kock, modificado 6 Anos atrás.

RE: How to use <portlet:namespace> in main.css file

Liferay Legend Postagens: 6396 Data de Entrada: 23/09/08 Postagens Recentes
Megesh Damre:
if we use <portlet:namespace/> tag in main.css file then while ant deploy time throwing com.liferay.sass.compiler.jni.internal.JniSassCompilerException:


Of course. Tags are good for use in JSPs only (with some hoops in templates as well). A CSS file will optimally be included only once per portlet on the page - you should use another selector to target design for your portlet. <portlet:namespace/> has no meaning in CSS files.