Legacy Knowledge Base
Published Jul. 2, 2025

Applying decorators on a content page within fragments

Written By

Gábor Komáromi

How To articles are not official guidelines or officially supported documentation. They are community-contributed content and may not always reflect the latest updates to Liferay DXP. We welcome your feedback to improve How To articles!

While we make every effort to ensure this Knowledge Base is accurate, it may not always reflect the most recent updates or official guidelines.We appreciate your understanding and encourage you to reach out with any feedback or concerns.

Legacy Article

You are viewing an article from our legacy "FastTrack" publication program, made available for informational purposes. Articles in this program were published without a requirement for independent editing or verification and are provided"as is" without guarantee.

Before using any information from this article, independently verify its suitability for your situation and project.

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
  • 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. 

 

 

Did this article resolve your issue ?

Legacy Knowledge Base