Issue
- Free marker template(ftl) error is occurring when fragments changes propagation is enabled.
-
Steps to Reproduce
- Enable Automatic Page Fragment Propagation.
- Navigate to Product Menu -> Design -> Fragments
- Create a new Collection and new Fragment
- Now, add below JSON snippet in Configuration Tab.
{ "fieldSets": [ { "label": "Spacing", "fields": [ { "dataType": "string", "label": "Test Configuration", "name": "test", "type": "checkbox", "defaultValue": false } ] } ] } -
Under Tab HTML, add the below code snippet to use the configuration added:
${configuration.test?c}
- Create a new Content Page, and add the newly created Fragment.
- Publish the Page.
-
Now, update the Fragment, add a new configuration under Configuration Tab.
{ "fieldSets": [ { "label": "Spacing", "fields": [ { "dataType": "string", "label": "Test Configuration", "name": "test", "type": "checkbox", "defaultValue": false }, { "dataType": "string", "label": "Test Configuration", "name": "test1", "type": "checkbox", "defaultValue": false } ] } ] }
-
Under Tab HTML, add the below code snippet to use the new configuration added.
${configuration.test?c}
${configuration.test1?c} - Publish the Fragment.
- Fragment is not getting publish and it gives error "FreeMarker syntax is invalid. The following has evaluated to null or missing: ==> configuration.test1".
Environment
- Liferay DXP 7.3
Resolution
- The observed behavior is a known issue/bug and will be fixed in the upcoming fix pack.
- If the hotfix is required for this issue, please create a support ticket requesting hotfix by attaching patch details.
- Installing Fix Packs and Hotfixes on Liferay DXP will guide to install this hotfix in the respective environment.