How to loop through repeatable fields in a Display Page Template

Issue

  • Using Display Page Templates for Web Content with image field which is repeatable and adding more images to this content.
  • When the image field is mapped to the Display Page Template, only the first image is mapped/visible on the UI. 

Environment

  • Liferay DXP 7.0+

Resolution

  • If a specific repeatable field is mapped to a fragment (E.g.: a paragraph or an image) only the first value will be displayed.

Additional Information

  • Please note, Content Display fragment can list the repeatable values.

 

这篇文章有帮助吗?
2 人中有 0 人觉得有帮助