Issue
- Using fragments with embedded widgets, like web content display, the default theme decorator is not being applied to the embedded widget.
Environment
- Liferay DXP 7.2+
Resolution
-
The desired scenario of applying decorators on a content page within fragments is not available by design, due to the following reason:
Fragments are meant to be applied on content pages, while the portlet decorators are designed to be used on widget pages, specifically.
Additional Information
-
There are two possible ideas, which may help you to get closer to the desired outcome. Although, neither of them belongs to the scope of Support Coverage:
- Converting the widget page to a content page, therefore the decorators are getting converted as well. However, this way, the decorator settings won't be adjustable later, still.
-
Apply the desired styling in a different way, as content pages have different styling options.
The following documentation about content pages may come in handy for such a scenario:
Creating Content Pages
Content Page Elements
- Converting the widget page to a content page, therefore the decorators are getting converted as well. However, this way, the decorator settings won't be adjustable later, still.
- In need of more specific guidance for the development, the sales representative could also be a great resource to discover the opportunities of our consultancy service provided by our Global Services team.