Color Field Error when using Web Content Structure
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
- When using the "Color" Field in a Web Content Structure, it doesn't save the previously selected value and the "Color" field doesn't load.
-
Steps to reproduce:
-
Create a structure, add at least one "Color" field to it.
-
Create a template, print the color field's value to it.
-
Connect the new template to the structure.
-
Create a Web Content object using the new template/structure
-
In the color field, enter a HEX value that begins with a number (not all values cause the issue, "980000" has reliably caused it though)
-
Publish the Web Content object, then go back in and edit it again.
Resolution
- This is a reported bug within Core Liferay, please request a hotfix to include LPD-21418.
- Another potential workaround has been identified:
- Edit the structure, modify the color field
- In the "Advanced" tab, uncheck "Localizable"
- Save structure
Did this article resolve your issue ?