Configurations for embedded portlets are not updated when deploying an updated theme
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
- I have a theme with an embedded portlet that I have deployed and applied to a site. I updated the configurations of the embedded portlet and deployed the updated theme to the site, but I do not see the updated configurations be applied to the embedded portlet.
Resolution
- This behavior is intended and a product limitation. This behavior occurs as the original configurations of the embedded portlet are written to the database in the PortletPreferences table.
- To workaround this behavior, administrators can write a Groovy Script that deletes old PortletPreferences so that a new record with the updated configurations can be utilized. Please see the javadocs on the PortletPreferencesLocalServiceUtil class for more details.
Did this article resolve your issue ?