Uploaded image for project: 'E-commerce'
  1. E-commerce
  2. ECOMMERCE-290

DOC: images displayed for ecommerce products

    XMLWordPrintable

Details

    • Task
    • Resolution: Fixed
    • Neutral
    • None
    • None
    • None
    • None

    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).

      Checklists

        Acceptance criteria

        Attachments

          Activity

            People

              jlegendre Julie Legendre
              jlegendre Julie Legendre
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Checklists

                  Task DoR