留言板

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

thumbnail
Megesh Damre,修改在6 年前。

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

New Member 帖子: 24 加入日期: 17-4-27 最近的帖子
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,修改在6 年前。

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

Liferay Legend 帖子: 6403 加入日期: 08-9-23 最近的帖子
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.