[ECOMMERCE-290] DOC: images displayed for ecommerce products Created: 16/Apr/20  Updated: 02/Jul/20  Resolved: 30/Apr/20

Status: Closed
Project: E-commerce
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Task Priority: Neutral
Reporter: Julie Legendre Assignee: Julie Legendre
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Template:
Acceptance criteria:
Empty
Task DoR:
Empty
Epic Link: DOC: E-commerce V1.1.1 documentation
Sprint: Add-Ons 36
Story Points: 1

 Description   

From tonda in ECOMMERCE-226

For jlegendre:

This ticket introduced multipleImageField and URLImageField for displaying images from list of URLs.
multipleImageField displays all images from the list, URLImageField displays only the first one from the list.

Example definitions:

images:
  label: Productimage(s)
  $type: multipleImageField
  converterClass: info.magnolia.ecommerce.app.productdetail.field.URLsToStrings
  imageRatio: 60
images:
  label: Product image
  $type: URLImageField
  converterClass: info.magnolia.ecommerce.app.productdetail.field.ListOfURLsToString
  imageRatio: 60

Property imageRatio defines a ratio of displayed images to the original images in percentages (in the examples it's 60%). If the property isn't set the images are displayed in the original size. We use the multipleImageField for displaying product images on product detail form (configured in /ecommerce-ui/apps/ecommerce.yaml).



 Comments   
Comment by Julie Legendre [ 30/Apr/20 ]

Screen shots updated in overview, config added to module page in a hide block pending the release of 1.1.1. Reviewed by Antonin.

Generated at Mon Feb 12 01:42:39 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.