Details
-
Bug
-
Status: Closed
-
Resolution: Fixed
-
6.2.X EE
Description
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
Attachments
Issue Links
- 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