Details
-
Bug
-
Resolution: Unresolved
-
Neutral
-
None
-
None
-
None
-
None
Description
Steps to reproduce
In Resources app:
- Edit Text and Image dialog in travel-demo module
- YAML:
!inherit:mtk2:components/textImage form: properties: constrainAspectRatio: $type: checkBoxField upload: label: Upload $type: uploadField layout: $type: tabbedLayout tabs: tabImage: fields: - name: constrainAspectRatio - name: upload
- YAML:
- Edit Text and Image FTL in travel-demo module
- Add to the FTL:
[#if cmsfn.asJCRNode(content).hasProperty('jcr:data')] <img src="${imgfn.getImageVariationLinkFromBinary(content, '320')}" /> [/#if]
- Add to the FTL:
- Go to Pagess app and create a new page under travel
- Edit the page, add Text and Image component, switch to Image tab and upload a new image
- Publish the page five times
- Compare two versions
Expected results
Image is rendered on the page
Actual results
No image is rendered on the page due to broken link
Workaround
None
Development notes
Must be solved in subclasses implementing Variation interface.
Caused by the fact that the node used for link creation is wrapped by VersionedNode / VersionedChildNode.
Checklists
Acceptance criteria