Message Boards
portlet_display.getPortletDecoratorId() not returning anything
Ben Kinsey, modified 4 Years ago.
portlet_display.getPortletDecoratorId() not returning anything
New Member Posts: 9 Join Date: 2/17/19 Recent Posts
I'm using a theme generated by `yo liferay-theme` on Liferay 7.2. I set the default portlet decorator to barebone like this:
<look-and-feel>
<compatibility>
<version>7.2.0+</version>
</compatibility>
<theme id="x" name="x">
<template-extension>ftl</template-extension>
<portlet-decorator id="barebone" name="Barebone">
<default-portlet-decorator>true</default-portlet-decorator>
<portlet-decorator-css-class>portlet-barebone</portlet-decorator-css-class>
</portlet-decorator>
I expected portlet_display.getPortletDecoratorId() to return "barebone" but it returns nothing.Does anybody know what I am doing wrong? How do I get the portlet decorator id in LF 7.2?
<look-and-feel>
<compatibility>
<version>7.2.0+</version>
</compatibility>
<theme id="x" name="x">
<template-extension>ftl</template-extension>
<portlet-decorator id="barebone" name="Barebone">
<default-portlet-decorator>true</default-portlet-decorator>
<portlet-decorator-css-class>portlet-barebone</portlet-decorator-css-class>
</portlet-decorator>
I expected portlet_display.getPortletDecoratorId() to return "barebone" but it returns nothing.Does anybody know what I am doing wrong? How do I get the portlet decorator id in LF 7.2?
Ben Kinsey, modified 4 Years ago.
RE: portlet_display.getPortletDecoratorId() not returning anything
New Member Posts: 9 Join Date: 2/17/19 Recent Posts
Further clarification: it may be because the portlet was web content I was embedding inside of a Page Fragment