-
Type:
Regression Bug
-
Status: Closed
-
Resolution: Fixed
-
Affects Version/s: 6.2.X EE
-
Fix Version/s: 6.2.X EE
-
Component/s: Dynamic Data Mapping, ~[Archived] WCM
-
Branch Version/s:6.2.x
-
Backported to Branch:Committed
-
Fix Priority:5
-
Last Working Version:
-
Git Pull Request:
-
QA Test Score:10
Default velocity macros for Web Content Structure fields are syntactically incorrect.
LPS-66743 puts .vars[] into velocity macros, however that is valid only for Freemarker language.
The last good version is : 6.2.10-SP15 with portal-130.
Steps to reproduce
- Go to Admin > Site Administration > Content > Web Content
- Go to Manage > Structures and add a structure with, for example, a text field called Text1777, save
- Associate a Velocity template to such structure
- Call the text field by clicking on it on "Text" (left side) under "Fields"
Expected
Template editor to add $Text1777.getData()
Actual behavior
Such action will add $.vars['Text1777'].getData(), which looks like an incorrect Freemarker for $
{.vars['Text1777'].getData()}
warning
It needs a full test for all the field types + switching on repeatable (and without repeatable)
So a deeper test:
- create a web content structure with
- all the fields
- plus all the fields sets them to repeatable
- create a velocity template for this
- create a content with this structure
- display the content in a Web Content Display portlet
- check if everything works well
- do the same with Freemarker Template
- is caused by
-
LPS-66743 Template processing error occurred when using the web content Template of which attribute name contains dashes
- Closed
- relates
-
LPE-15652 Default velocity macros for Web Content Structure fields are syntactically incorrect
-
- Closed
-
- Testing discovered
-
LPS-70708 Can't add Separator field for template
- Verified